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
 query

Author  Topic 

rws
Starting Member

1 Post

Posted - 2008-04-10 : 01:26:36
im my table there are different different productid but series is not different . I need distinct series with product_id . Please suggest me .

table
productid series
1 a
2 a
3 b
4 c
5 c

i need

1 a
3 b
4 c


Prashant

jezemine
Master Smack Fu Yak Hacker

2886 Posts

Posted - 2008-04-10 : 01:30:44
select min(productid), series
from yourtable
group by series


elsasoft.org
Go to Top of Page
   

- Advertisement -