i need to do this :
There is a table called table1 it has a employee id column,status column which has values 1 and 0 only and a department column with values 100,101,102.
i want to list all employeeid with the status = 0
from the above list i want to filter the employees which having (department=100 and whose status=1)
Extended question:
i want to include only whose department is 100 and status =1 from the list of status=0 employees
Please help me
I’m guessing you’ve phrased it incorrectly and want OR instead of AND, try this..
Edit
If you only want the employeeid then do this
Edit No.2
Covering all bases, if you want to find all employees who don’t have a status of 0, or a status of 1 and department of 100 then try this!!