I have a table which looks like the follwing.
EMPLID EFFDT EFFSEQ DEPTID JOBCODE FLAG1 FLAG2 FLAG3
X <date> <number> <text> <text> <number> <number> <number>
X
Y
Z <date1> <number1> <text1> <text1> <number1> <number1> <number1>
Z <date2> <number2> <text2> <text2> <number2> <number2> <number2>
Z
What I'm not able to figure out is, how to eliminate the 2nd and the last row while managing to keep the 3rd row (EMPLID=Y
)
In words, I need to eliminate records of employees where there is one with full population and keep the ones which is the only one which is empty. This is a part of a much larger problem I'm having to face. I wish I had the time to discuss the whole problem.
Thank you