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.
| Author |
Topic |
|
k80sg
Starting Member
7 Posts |
Posted - 2011-07-18 : 16:10:10
|
| Hi, I have the query below to help me find out which of my items are unsellable, how do I rephrase it such that it only shows 'Tight Pants' and 'Flowery stockings? Thanks!select Products.ProductID, Products.ModelName, SUM(shoppingCart.Quantity) from Products left join ShoppingCarton (Products.ProductID = ShoppingCart.ProductID)group by Products.ProductID, Products.ModelName order by SUM(shoppingCart.Quantity) DescResult:001 Lacy Dress 16003 Skinny Jeans 22 005 Tight pants 0007 Flowery stockings 0 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|
|