Query to lookup values from the same table
Please help me with a query for the below mentioned problem:-
I have a table with employee ID, Email, Supervisor ID and H.R rep ID; I require a query which should give me the Supervisor's Email and H.R rep's Email by looking up the values for employee Id in the same table.
i.e. the query will have the same function of Vlookup in excel.
|