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 Administration
 select unique from view

Author  Topic 

arusu
Yak Posting Veteran

60 Posts

Posted - 2010-08-26 : 16:36:52
i have a view that will display

category name address
1 andrew 12
2 greg 21
1 greg 21
1 null null

so i have a website that should display all of the categories from this view but i only want it to show each category once. I can't select distinct because i need to access the other information in the view like the name and address and if i select distinct, greg will only show up once.... i just need distinct on category
   

- Advertisement -