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
 General SQL Server Forums
 New to SQL Server Programming
 Distinct Records

Author  Topic 

jcb267
Constraint Violating Yak Guru

291 Posts

Posted - 2011-03-14 : 20:22:11
Hi ~

I have a table that houses multiple records for each group id number. I selected the records I want by using the distinct command (select distinct(groupid)). Now, I realized that I would like to select multiple items using distinct. How do I use this commany twice?

pk_bohra
Master Smack Fu Yak Hacker

1182 Posts

Posted - 2011-03-15 : 00:43:41
Please provide some sample data and expected output.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2011-03-15 : 10:29:48
See if you need this
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=81254

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -