SQL Joins Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is an inner join (or just join)?

A

Keeps only the records in which the key field is in both tables

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

What is a LEFT JOIN? (RIGHT)

A

Keeps all fields in the left table, and all matches in the right (Opposite)

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

What happens to fields that don’t match on LEFT/RIGHT/FULL JOINS?

A

Listed as missing values

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

What is a FULL JOIN?

A

All values in both tables

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

What is a CROSS JOIN?

A

Gives all combinations of rows from both tables

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