SQL output problems

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • owz
    New Member
    • Nov 2006
    • 14

    #1

    SQL output problems

    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.Purchase d_Price) FROM CarSales AS CS
    WHERE CS.Sales_Staff_ No = CarSales.Sales_ Staff_No) AS Sales_for_last_ 6_month, CarSales.Date_O f_Purchase
    FROM CarSales
    WHERE (((CarSales.Dat e_Of_Purchase)> =#10/1/2006# And (CarSales.Date_ Of_Purchase)<=# 10/31/2006#));
  • MMcCarthy
    Recognized Expert MVP
    • Aug 2006
    • 14387

    #2
    owz,

    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.

    Mary

    Comment

    Working...