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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -