By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,164 Members | 1,019 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,164 IT Pros & Developers. It's quick & easy.

SQL output problems

P: 14
Need help my code does not output correcly... i need it 2 output the sum of the prices from the month befor. instead it output the summ from all months,, any help would be welcome

SELECT DISTINCT CarSales.Sales_Staff_No, (SELECT SUM(CS.Purchased_Price) FROM CarSales AS CS
WHERE CS.Sales_Staff_No = CarSales.Sales_Staff_No) AS Sales_for_last_6_month, CarSales.Date_Of_Purchase
FROM CarSales
WHERE (((CarSales.Date_Of_Purchase)>=#10/1/2006# And (CarSales.Date_Of_Purchase)<=#10/31/2006#));
Nov 29 '06 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 10K+
P: 14,534

Please don't double post.

If for any reason your question isn't attended to then post a reply to it and this will move it back up the queue.

I am closing this thread and will delete it as I have answered your other post.

Nov 30 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.