SQL-Join Flashcards
1
Q
What is a foreign key?
A
A column that is shared between multiple tables that links them together
2
Q
How do you join two SQL tables?
A
Using the JOIN clause followed by the table name you want to join in double parentheses. Which then is followed by the foreign key column that is shared between the tables.
3
Q
How do you temporarily rename columns or tables in a SQL statement?
A
By aliasing them with the as keyword