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.
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.
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.
4
Q
One-to-one Relationship
A
The PK column in table1 relates to the FK column in one row in table2.
5
Q
One-to-many Relationship
A
The PK column in table1 can relate to the FK column in many rows in table2