SELECT check_id, created_by, locked_by, updated_by FROM reports,HR_DATA WHERE ........
Where created_by , locked by and updated_by each defines a person by a unique id say 101 though i need to lookup the name of the person which are stored in HR_data as first_name and last_name and its unique id is usr_id
ie
HR_DATA(usr_id,first_name, last_name)
REPORTS (check_id, created_by, locked_by, updated_by)
i need to be able to look up the full name of each of these, if it was just one name i could look it up using
SELECT check_id, created_by, locked_by, updated_by FROM reports,HR_DATA WHERE usr_id = created_by
Though as i need it for 3 fields this wont work
Anyopne know how to do this efficiently?
Thanks
Ash
Where created_by , locked by and updated_by each defines a person by a unique id say 101 though i need to lookup the name of the person which are stored in HR_data as first_name and last_name and its unique id is usr_id
ie
HR_DATA(usr_id,first_name, last_name)
REPORTS (check_id, created_by, locked_by, updated_by)
i need to be able to look up the full name of each of these, if it was just one name i could look it up using
SELECT check_id, created_by, locked_by, updated_by FROM reports,HR_DATA WHERE usr_id = created_by
Though as i need it for 3 fields this wont work
Anyopne know how to do this efficiently?
Thanks
Ash