Unanswered: Select data with multiple NOT IN where class
Hi, Please can anyone help me with below sql query. I need to select data from a table based on multiple NOT IN where conditions
For exmaple- From below table select Emp Id where Dept not in (D1,D2) and Role not in (R1, R2). There is an AND relation between these two condition i.e the condition should be applied only when both the conditions (Dept+Role) are satisfied. For example the query should select Emp id=1 as only Dept = D1 but Role is not R1 or R2. Similarly Emp id= 2 should not be displayed as both the conditions are satisfied.