Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

how to select several columns with one being distinct

$
0
0
As you can see in the screenshot below (I hope it is legible) I have a basic query. I need it to return the columns selected, but only one row per "componentId". Writing it out as SELECT DISTINCT does not do any good because the rows are distinct, each wi

Viewing all articles
Browse latest Browse all 3145

Trending Articles