SQL Flashcards
1
Q
what is a benefit of structuring data?
A
it allows us to do things we can’t do efficiently or feasibly with unstructured data.
2
Q
what are 3 DBMS functionalities?
A
- data entry validation
- queries
- simultaneous updates by multiple users.
3
Q
what is the SQL format?
A
select
from
where
group by
order by
4
Q
what are 3 attributes of a database?
A
- they keep data in multiple tables
- each table has a primary key
- tables are linked by matching field values.
5
Q
what are the 3 scenarios for when you need another table?
A
- you have more than 1 entity
- you have multiple values of some field
- given the value of field A, you know the value of field B without looking since the value of field B is always the same for a given value of A
6
Q
what does it mean to have more than one entity?
A
fields for one are empty for another
7
Q
give an example for when you have multiple values of some field
A
multiple songs on each album
8
Q
what does […] mean?
A
that … is optional.