Lesson 2: Joining Multiple Tables Flashcards

1
Q

Primary key (PK)

A

The PRIMARY KEY is a column or columns that uniquely identifies each row in the table. It cannot be left NULL.

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

Foreign key (FK)

A

The FOREIGN KEY is a key that is used to connect two tables. The FOREIGN KEY is a column or columns in one table that refers to the PRIMARY KEY column in another table.

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

Joins

A

A join clause is used to combine rows from two or more tables, based on a related column between the tables.

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

Left Join

A

The LEFT JOIN keyword returns all rows from the left table (we refer to this as table1), and the matching rows from the right table (we refer to this as table2). The result is a NULL from the right side, if there is no match.

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