I have below single table , in which we have same 3 rocords with differnt version, We need to fetch records with their highest version.
table
Id name value verion
1 raj java 8
2 raj stack 4
3 prem abc 6
4 raj google 1
5 prem pqr 11
and many more like this
Output should look like this
Id name value verion
1 raj java 8
5 prem pqr 11
I have already tried to find the solution with below Stack over question, but I am using single table, not able to find the solution
Selecting most recent and specific version in each group of records, for multiple groups