how can a multiple group by query be efficiently arranged?
the query
select A1,Z,count(*) from D group by A1,Z union
select A2,Z,count(*) from D group by A2,Z union
...
select An,Z,count(*) from D group by An,Z;
at least in Oracle is not optimized. One pass over D should be sufficient to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.