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
 List items once

Author  Topic 

philip_95
Starting Member

1 Post

Posted - 2014-08-22 : 17:43:10
how can run a query that would not list duplicate e.g.

item 1 section 1
item 2 section 1
item 3 section 1
item 4 section 1
item 5 section 2
item 6 section 2
item 7 section 3

the output would be

section 1
section 2
section 3

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2014-08-22 : 17:52:33
select distinct yoursectioncolumnname
from yourtable

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page
   

- Advertisement -