Joining hr_locations with HR_ORGANIZATION_UNITS
Hello,
I'm working on the query below to bring in hou.Name Department_Name with details from HR_Locations. They both should join on location_id but I keep returning no data when paired together.
select hl.location_name,
hl.INTERNAL_LOCATION_CODE,
hl.ADDRESS_LINE_2,
hl.POSTAL_CODE,
hl.REGION_2,
hl.TOWN_OR_CITY,
hou.Name Department_Name
FROM
HR_LOCATIONS hl,
HR_ORGANIZATION_UNITS hou
WHERE 1=1
AND hl.location_id = hou.location_id
Any tips or guidance is greatly appreciated.
Thanks,
Sean