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 |
|
X-Factor
Constraint Violating Yak Guru
392 Posts |
Posted - 2003-11-18 : 19:52:28
|
| Hi there,When using DISTINCT with a SELECT statement, is it possible to have only a single column determine whether the item is a duplicate?For example,prodID - variation4 Pink4 Green2 Small1 NullI would like to return only...prodID421X-Factor |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2003-11-18 : 19:54:24
|
| SELECT DISTINCT prodIDFROM Table1Perhaps I am not understanding the problem.Tara |
 |
|
|
X-Factor
Constraint Violating Yak Guru
392 Posts |
Posted - 2003-11-18 : 21:03:01
|
| Sorry, my example was poor!I sorted it out though by not retrieving the data which was causing the duplicates. |
 |
|
|
|
|
|