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.
2
Q
What are the database types?
A
Relational, object oriented and NoSQL.
3
Q
What are the steps of good database design?
A
- Purpose
- Organize information
- Divide into tables
- Information to columns
- Specify primary keys
- Set up relationships
- Refine
- Normalize
4
Q
What is ERD?
A
ERD stands for Entity Relationship Diagram; it is a visual starting point for database design.
5
Q
What is SQL?
A
SQL stands for Structured Query Language
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