Hello,
I need to pick records base on the status with the highest priority. For example,
ID Status
1 PN
1 AP
1 UD
2 PE
2 UD
3 AP
The highest priority order is AP, PN, UD.
I want my result to be:
ID Status
1 AP
2 PE
3 AP
So all ID must be select, but only the status with the highest priority leveL will be select.
Thank you for your assistance.
I need to pick records base on the status with the highest priority. For example,
ID Status
1 PN
1 AP
1 UD
2 PE
2 UD
3 AP
The highest priority order is AP, PN, UD.
I want my result to be:
ID Status
1 AP
2 PE
3 AP
So all ID must be select, but only the status with the highest priority leveL will be select.
Thank you for your assistance.