SQL coding Flashcards

1
Q

What is SQL aggregation? And what are examples?

A

An aggregating function takes a list of values and returns one value.

Examples: SUM, COUNT, MAX, MIN, ROUND, AVG

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

What does the sql code “cross join” do?

A

Multiplies the number of ROWS in both tables. Note, rows are records, like they go down and up, don’t get them confused with columns.

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

What does Select count(1) do?

A

Basically means “sum”, so it counts and displays the number of records which would’ve been produced.

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