Databases and SQL Flashcards

1
Q

What is a database?

A

A database is a container for data storage.

Databases are controlled by a database management system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the database types?

A

Relational, object oriented and NoSQL.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the steps of good database design?

A
  1. Purpose
  2. Organize information
  3. Divide into tables
  4. Information to columns
  5. Specify primary keys
  6. Set up relationships
  7. Refine
  8. Normalize
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is ERD?

A

ERD stands for Entity Relationship Diagram; it is a visual starting point for database design.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is SQL?

A

SQL stands for Structured Query Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Name some common SQL queries

A
SELECT - get data 
INSERT - add new row 
DELETE - remove row 
UPDATE - update row 
WHERE - filter by conditions 
LIKE - if value starts or ends with or contains a specific value 
ORDER BY - sort by column 
GROUP BY - group by column in case of duplicates 
DISTINCT - get unique values by column
How well did you know this?
1
Not at all
2
3
4
5
Perfectly