Need your help on getting the sql query for the below data
TableName: EMP_DB
EMPID Flag Processing Date
ABC1 yes Current Date
ABC1 No Old Date
DEF1 Yes Current Date
DEF1 No Old Date
GHI1 Yes Old Date
JKL1 yes Current Date
JKL1 No Old Date
i need to select only EMP ID for the above table for which Flag is set to Yes and Processing Date is old Date. i.e In the above table be having 2 records for each Emp, i need to select record for which employee is having only one record and for which processing date is old date and flag is set to Yes.
Regards, San