Data Retrieval from Multiple Tables Flashcards

1
Q

What keyword is used to combine rows from two tables?

A

JOIN

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

What is the default sorting order in ORDER BY?

A

Ascending (ASC)

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

What SQL clause filters data before aggregation?

A

WHERE

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

Which clause filters groups after aggregation?

A

HAVING

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

What function returns the number of rows?

A

COUNT()

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

How do you perform a self-JOIN?

A

Join a table to itself using aliases

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