On Friday, 12 October, 2018 01:02, John Found <johnfo...@asm32.info> wrote:

>Hm, is sounds strange because when HAVING clause is processed,
>the aggregate functions should not be processed yet (for a
>performance reasons) i.e. the query still has access to all 
>values from the field
>b
>and theoretically should be able to search these values the same way
>it searches them on executing min() or max() aggregate functions.

The WHERE clause filters the table rows going into the GROUP-BY and the HAVING 
filters results coming out of the GROUP-BY processing, which is why the HAVING 
clause may only refer to attributes of the grouping ... which is then passed to 
the ORDER-BY sorter to determine the presentement order.

---
The fact that there's a Highway to Hell but only a Stairway to Heaven says a 
lot about anticipated traffic volume.






_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to