Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

SQL SELECT DISTINCT On One Column

$
0
0

Hello,

I have a SQL query that returns three columns but I need it to only return distinct values for one column.

Example: I have three columns (col1, col2, col3). I want all three columns returned, but I don't want there to be any duplicates of col1.

Is this possible?

Note: I'm using Microsoft Access to build this query.


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>