Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 help please

Author  Topic 

Hpolanco
Starting Member

7 Posts

Posted - 2006-10-27 : 21:48:19
The script is supposed to uniquely list each item for sale by name and show the quantity of each sold for a particular period of time.

This is the code
can any one help out and find the solution I know there are two problems but i don't know what can i do to fix it help me please

use KTC
select b.ItemName, (SUM(a.Quantity))as "Count"
from Order_Details a
join Items b on b.ItemID = a.ItemID
join Orders c on a.OrderID = c.OrderID
WHERE c.OrderDate < CAST( '11/30/2004' AS datetime ) AND c.OrderDate > CAST( '11/11/2004' AS datetime )
GROUP by b.ItemName, b.ItemUnitPrice

Thank you

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-10-27 : 21:51:11
Duplicate:
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=74168

Tara Kizer
Go to Top of Page
   

- Advertisement -