Here is an real world example:
(sorry for any language mistakes)
for each customer who has bought more than 10 parts of product 1display all products with sum.
select customernumber, partnumber, sum(quantity)
from customer c, transaction t
where c.customernumber = t.customernumber
and...
Hello,
i want to create a roport following style (sql)
select a,b,f(c)
from x
where filters
and a in (select a
from x
where filters
and b = y
group by a,b
having f(c) = z
group by a,b;
so for all a having in b value z in f(c) display all b...
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.