Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Who says? That is simply incorrect. The having is used to compare on the results of the grouping. The where is used to do single row comparisons. Imagine a table with 5 million rows and you want 50. Would it really make sense to do the grouping on the 5 million before you determine whether you even need the row?Originally posted by Michael Taylor:
When using GROUP BY I have to use the HAVING clause instead of the WHERE clause, so I am a little confused by the WHERE in the recent responses.
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
them good ole boys were drinking whiskey and rye singin' this'll be the day that I die. Drink tiny ad.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|