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 2005 Forums
 Transact-SQL (2005)
 Distinct on One Column but show all columns

Author  Topic 

tarana
Starting Member

12 Posts

Posted - 2011-07-25 : 21:06:24
I have a table ID, Name, ...., etc (SQL 2008)

I need a SELECT query which shows only a Unique ID, but display all the rest of the columns in the table.

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2011-07-25 : 21:09:58
please post some sample data and expected result


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -