Lesson 7: Getting Data From Two Tables Flashcards

1
Q

Table Relationships

A

Tables are linked or related through the PK and FK to create the relationship between two or more tables.

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

Join

A

A JOIN clause is used to combine rows from two or more tables, based on a related column between the tables. The default join statement is an INNER JOIN.

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

Inner Join

A

The INNER JOIN keyword selects rows that have matching values in both tables. The INNER JOIN is the default join.

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

One-to-one Relationship

A

The PK column in table1 relates to the FK column in one row in table2.

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

One-to-many Relationship

A

The PK column in table1 can relate to the FK column in many rows in table2

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