Hi Everyone,
I need to know if this is possible?
SELECT
If not, is there a way to do something like this?
Thanks in advance.
I need to know if this is possible?
SELECT
CASE
WHEN IDI.ID = E.ENROLLID THEN 'Entry'
WHEN IDE.ID = E.EXITID THEN 'Exit'
END AS Test
FROMEnrolled E
INNER JOIN TestTable IDI ON E.EnrollID = IDI.ID
INNER JOIN TestTable IDE ON E.ExitID = IDE.ID
If not, is there a way to do something like this?
Thanks in advance.