As far as I know, you can't use HAVING to create a join condition. I'll give it a try, but the HAVING will probably be performed after the join and without a WHERE or ON clause, you get a cartesian join. So you will end up with every row of every table joined with every row of every other table...
I am trying to perform a summary query that joins 4 tables. Ordinarily I don't work with Access. With DB2, I would write something like this:
SELECT customer.customerNo,
customer.name,
Sum(customerContact.ordersPlaced) AS Orders,
Sum(productSales.qtySold) AS Sales...
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.