rows like this:
id name version(int)
typeid_1 typename1 version1
typeid_1 typename1_a version2
typeid_2 typename2 version1
typeid_2 typename2_a version2
typeid_2 typename2_b version3
typeid_3 typename3 version1
typeid_3 typename3_f version2
now, I want to find all the latest version for each row, like this:
typeid_1 typename1_a version2
typeid_2 typename2_b version3
typeid_3 typename3_f version2
除了用cursor,还有别的简洁办法没有?
谢谢!
id name version(int)
typeid_1 typename1 version1
typeid_1 typename1_a version2
typeid_2 typename2 version1
typeid_2 typename2_a version2
typeid_2 typename2_b version3
typeid_3 typename3 version1
typeid_3 typename3_f version2
now, I want to find all the latest version for each row, like this:
typeid_1 typename1_a version2
typeid_2 typename2_b version3
typeid_3 typename3_f version2
除了用cursor,还有别的简洁办法没有?
谢谢!