Skip to content
Advertisement

Getting distinct values with the highest value in a specific column

How can I get the highlighted rows from the table below in SQL? (Distinct rows based on User name with the highest Version are highlighted)

enter image description here

In case you need plain text table:

What I have so far is (works for one user)

Advertisement

Answer

this might help you :

sql fiddle

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement