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.

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

what are 3 DBMS functionalities?

A
  1. data entry validation
  2. queries
  3. simultaneous updates by multiple users.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is the SQL format?

A

select
from
where
group by
order by

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

what are 3 attributes of a database?

A
  1. they keep data in multiple tables
  2. each table has a primary key
  3. tables are linked by matching field values.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what are the 3 scenarios for when you need another table?

A
  1. you have more than 1 entity
  2. you have multiple values of some field
  3. 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what does it mean to have more than one entity?

A

fields for one are empty for another

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

give an example for when you have multiple values of some field

A

multiple songs on each album

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

what does […] mean?

A

that … is optional.

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