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 |
taunt
Posting Yak Master
128 Posts |
Posted - 2012-01-12 : 13:26:03
|
Hello I'm trying to make a list of everything we have stock on and I want it to just show 1 thing the media type of what we have stock on. So far I did this:SELECT MediaFROM ProductsWHERE (StockQty > 0)ORDER BY MediaThat returns over 40,000 results with multiple listings of the same thing. How can I tell sql to just show me the media once?Thanks |
|
X002548
Not Just a Number
15586 Posts |
|
taunt
Posting Yak Master
128 Posts |
Posted - 2012-01-12 : 14:56:17
|
SELECT DISTINCT MediaFROM ProductsWHERE (StockQty > 0)ORDER BY MediaWorked perfectly. THanks |
 |
|
|
|
|