callnishant
ISP
Hi,
I have a simple but tricky for me question.
I have a table that has two columns: "EmployeeID" and "Came_Late". This table keeps track if an employee came late or not. The data kind of looks like this:
EmployeeID Came_Late
125175 No
125175 Yes
125175 No
334321 Yes
334321 No
77889 No
77889 Yes
-----------
Now, I am trying to make a new table as a subset of this table which would tell me the EmployeeID where there was any value under Came_Late after a "Yes" for the same employee. For this example, my new table would look like:
EmployeeID
125175
334321
The EmployeeID 77889 didn't qualify because for this employee Came_Late was "Yes", but no value after a Yes.
Any help would be appreciated!!
Thanks in advance!
I have a simple but tricky for me question.
I have a table that has two columns: "EmployeeID" and "Came_Late". This table keeps track if an employee came late or not. The data kind of looks like this:
EmployeeID Came_Late
125175 No
125175 Yes
125175 No
334321 Yes
334321 No
77889 No
77889 Yes
-----------
Now, I am trying to make a new table as a subset of this table which would tell me the EmployeeID where there was any value under Came_Late after a "Yes" for the same employee. For this example, my new table would look like:
EmployeeID
125175
334321
The EmployeeID 77889 didn't qualify because for this employee Came_Late was "Yes", but no value after a Yes.
Any help would be appreciated!!
Thanks in advance!