Other Questions Flashcards

1
Q

What is a primary key?

A

One or more columns whose value(s) uniquely identify a row in that table (2.5)

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

What is a foreign key?

A

One or more columns whose value(s) uniquely identify a row in another table (2.5)

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

What does granularity indicate?

A

The granularity of a table indicates what level of detail each row represents.
• Higher granularity means more detailed
• Lower granularity means less detailed. The WHERE clause can be used to lower granularity.
(4.35)

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

How can the rule of thumb “Join in the …-to-1 Direction” be summarized?

A

Join in order of decreasing granularity (6.30)

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

True or False: Join type and table order don’t need to be considered when determining granularity.

A

False (6.31)

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

True or False: The GROUP BY clause is limited to one column.

A

False (7.10)

It is NOT limited to one column: it allows for a comma-delimited list of columns.

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