UserID GrpID Rights
U001 A V
U001 B M
U002 A V
U003 A V
U003 B M
There are two groups A and B. I want to select all the user_ids but if there are any duplicates, i want to select the user_id which has Rights "M"
In simple words, can anyone please tell me a select statement that displays,
UserID Rights
U0001 M
U0002 V
U0003 M
Please do help me out.
U001 A V
U001 B M
U002 A V
U003 A V
U003 B M
There are two groups A and B. I want to select all the user_ids but if there are any duplicates, i want to select the user_id which has Rights "M"
In simple words, can anyone please tell me a select statement that displays,
UserID Rights
U0001 M
U0002 V
U0003 M
Please do help me out.