0

I have a table with column Id,Name,Version Column Id contains duplicate and I only need to select one of each Id, but only the one with the highest version number.

I tried this, but it does not work:

select * 
from table1 
group by Id,version

Can someone drive me on the right direction?

Thanks,

Barmar
  • 669,327
  • 51
  • 454
  • 560
Cedric
  • 13
  • 3

0 Answers0