Infinite
More left to learn.
- Local time
- Yesterday, 21:37
- Joined
- Mar 16, 2015
- Messages
- 402
Hello, I have 4 query's, each of them having the SQL code of:
Each of the 4 query3 are almost %100 percent like that accept for the :
the 2015 is 2014, 2013, and 2012. What I want, is to have each of those 4 query's added together. Not quite sure how to do that, any help would be much appreciated.
Also, if any one has a better idea for each years total sales (instead of having 1 query for each year as I will have tons of query's in years to come) that would also be appreciated.
Code:
SELECT tblShowSales.EventID, tblShowSales.Date, Sum(tblShowSales.Quantity) AS Quantity, Sum(Nz([Gross Sales],0)+Nz([Tax],0)) AS [Total Sold5]
FROM tblShowSales
GROUP BY tblShowSales.EventID, tblShowSales.Date
HAVING (((tblShowSales.EventID) Not Like '*AMAZON*' And (tblShowSales.EventID) Not Like '*ECWID*') AND ((Year([Date]))=2015));
Each of the 4 query3 are almost %100 percent like that accept for the :
Code:
AND ((Year([Date]))=2015));
the 2015 is 2014, 2013, and 2012. What I want, is to have each of those 4 query's added together. Not quite sure how to do that, any help would be much appreciated.
Also, if any one has a better idea for each years total sales (instead of having 1 query for each year as I will have tons of query's in years to come) that would also be appreciated.