|
|
|
|
|
by ww520
1409 days ago
|
|
Having is the where-clause for Group By. It's easier to understand by thinking the SQL query as a pipeline. Stage 1: From returns the whole world of rows. Stage 2: Where filters down to the desired set of rows. Stage 3: Group By aggregates the filtered rows. Stage 4: Having filters again on the aggregated result. Stage 5: Select picks out the columns. |
|
(I know that I am probably missing some important technical points, I would like to learn about them)