| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Dan Nelson | Date: | April 20 2006 4:41am |
| Subject: | Re: where group and inner join | ||
| View as plain text | |||
In the last episode (Apr 19), Dan Nelson said: > It's useful to note that SELECT statements generally work in the > order they are written. The WHERE clause applies to the records as > they are read from the source tables, and at that point, no grouping > has been done, so there's no sum. Try moving your filter to a HAVING > clause, which comes between GROUP BY and HAVING, and applies to the "which comes between GROUP BY and ORDER BY", of course :) -- Dan Nelson dnelson@stripped
| Thread | ||
|---|---|---|
| • where group and inner join | Peter Lauri | 20 Apr |
| • Re: where group and inner join | Dan Nelson | 20 Apr |
| • Re: where group and inner join | Dan Nelson | 20 Apr |
| • RE: where group and inner join | Peter Lauri | 20 Apr |
| • Re: where group and inner join | Peter Brawley | 20 Apr |
