Analytics/SQL Flashcards

1
Q

What does the * mean

A

all

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

what does “select” control

A

the columns

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

what does “where” control

A

restricts the rows

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

what does “from” control

A

it specifies the data set

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

what does the “order by” control

A

display order

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

What does “having” control

A

it restricts rows based on aggregate column

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

What does AS do

A

makes column aliases use quotes around alias to make it easy, you can remove as and it still works to alias

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

what does inner join do

A

it just gives common data

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

what does left outer join do

A

gives all data on the left and anything on the right that matches

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

Good technique:break it down from the innermost quert

A

alsoa good idea to know query 1400 and practice makes perfect

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

Group by the____

A

Non aggregates

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