SQL Training
…





SQL Training



7
8
1 32
9
10
11
12
Note: the 7 first functions on the left hand side are aggregation functions and run only with the “group by” command which comes after the where
statement.
All the fields in the select statement which aren’t aggregated needs to figure in the group by statement
13
14
15
  
𝐻𝑒𝑖𝑔ℎ𝑡2
17










20
22


T
a
b
l
e
1
T
a
b
l
e
2
T
a
b
l
e
1
T
a
b
l
e
2
T
a
b
l
e
1
T
a
b
l
e
2
T
a
b
l
e
1
T
a
b
l
e
2



Sql introduction
Sql introduction

Sql introduction