Wow, I hit submit by accident...now I don't know how to modify it. I made a mistake in the code I posted, it is supposed to be...
SELECT data_bdat AS [Sales Date], data_sls AS [Total Sales], (select data_sls from table1 where data_bdat = data_bdat - 364) AS [Last Year Sales] FROM table1;
I need some help guys. I'm pretty new to SQL and I don't know if what I'm trying to do is allowed. I'm running a query on an Access datatable.
I want query to display 3 columns to me.
Column 1 = Date.
Column 2 = Total Sales on that date.
Column 3 = Total Sales from year ago.
I ran the...
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.