Hi,
I have a query where I'm pulling item codes from the items table and then summing the quantity sold from the invoice table. What I need to do is sum the quantity sold from the invoice table, and then in the next column i need to sum it again but only for invoices in a specified date range.
The problem is when I put the date info in the where section, it applies it to both sums. I only want it to apply to the second one.
Is there a way to do this?
Thanks!