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
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.
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.