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 -

Python Tornado package error when running server -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -