sql-join Flashcards

1
Q

What is a foreign key?

A

When you have a column with a specific key that is the value of another table’s row id – this is a foreign key. Instead of putting all of the information from another row – you just put a row key that knows where to look

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

How do you join two SQL tables?

A

using select, from and join using a specific attribute

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

How do you temporarily rename columns or tables in a SQL statement?

A

using the as clause

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