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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -