I have two tables like this
table1
Unix | Staffid
_____________________
534 | 65
342 | 34
232 | 232
232 | 34
table2
Staffid | auth
____________________
65 | y
34 | y
78 | n
45 | y
LIke this..
I have to select those staffid having auth y And which is not at this particular unix.. for example at particular unix 232 I can select 65 but not 34…I need for all unix values.
I have a slightly different interpretation of the question: