sql - I would like to get one rows if unique columns values are same -
from result
**col 1 col2 col3** 907475dd-ba56-48cd-a2cc-d29b7c86acf6 154000.00 0.00 907475dd-ba56-48cd-a2cc-d29b7c86acf6 0.00 15000.00
to result
**col 1 col2 col3** 907475dd-ba56-48cd-a2cc-d29b7c86acf6 154000.00 15000.00
group column want unique , use aggregate functions max of other columns.
select col1, max(col2), max(col3) your_table group col1
Comments
Post a Comment