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 and (department=100 whose status=1)
Please help me