Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Don't want to duplicate a row by cause of a different result in some column on Inner Join select

$
0
0

Hello,

Imagine my select result, where:

Columns = [id] [name] [a] [b]

results received:

[102] [John] [12] [5]

[102] [John] [12] [7]

[103] [Mary] [13] [8]

Look how i want to get:

[102] [John] [12] [5] [7]

[103] [Mary] [13] [8]

Selecting distincts 'ids', but putting a result in a different column.

How can i do it, please?

Thanks.








Viewing all articles
Browse latest Browse all 23857

Trending Articles



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