sql-join/aggregates Flashcards

1
Q

What is a foreign key?

A

links related tables together

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

join clause

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

with an alias

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

What are some examples of aggregate functions?

A

max( ) min( )
avg( ) sum( )
count( ) every( )

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

What is the purpose of a group by clause?

A

perform a task on designated groups of rows

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