I want to use a distinct and a top in a select statement, however I
want the distinct to only apply to one of the columns. For example
SELECT DISTINCT TOP 15 col1,col2,col3, col4 from table1
I only want the distinct to apply to say col2. Is there a way to do
this?
want the distinct to only apply to one of the columns. For example
SELECT DISTINCT TOP 15 col1,col2,col3, col4 from table1
I only want the distinct to apply to say col2. Is there a way to do
this?
Comment