DBA Data[Home] [Help]

VIEW: APPS.HR_NZ_TAX_UNIT_V

Source

View Text - Preformatted

SELECT ou.organization_id ,ou.business_group_id + 0 ,ou.name ,ou.date_from ,ou.date_to ,ou.type ,ou.internal_address_line ,ou.comments ,ou.location_id ,oi1.org_information1 ,l.address_line_1 ,l.address_line_2 ,l.address_line_3 ,l.town_or_city ,l.postal_code ,l.country FROM hr_organization_units ou ,hr_organization_information oi1 ,hr_organization_information oi2 ,hr_locations l WHERE ou.organization_id = oi1.organization_id (+) and ou.organization_id = oi2.organization_id and oi1.org_information_context || '' = 'NZ_IRD_EMPLOYER' and oi2.org_information_context || '' = 'CLASS' and oi2.org_information1 = 'HR_LEGAL' and oi2.org_information2 = 'Y' and l.location_id (+) = ou.location_id
View Text - HTML Formatted

SELECT OU.ORGANIZATION_ID
, OU.BUSINESS_GROUP_ID + 0
, OU.NAME
, OU.DATE_FROM
, OU.DATE_TO
, OU.TYPE
, OU.INTERNAL_ADDRESS_LINE
, OU.COMMENTS
, OU.LOCATION_ID
, OI1.ORG_INFORMATION1
, L.ADDRESS_LINE_1
, L.ADDRESS_LINE_2
, L.ADDRESS_LINE_3
, L.TOWN_OR_CITY
, L.POSTAL_CODE
, L.COUNTRY
FROM HR_ORGANIZATION_UNITS OU
, HR_ORGANIZATION_INFORMATION OI1
, HR_ORGANIZATION_INFORMATION OI2
, HR_LOCATIONS L
WHERE OU.ORGANIZATION_ID = OI1.ORGANIZATION_ID (+)
AND OU.ORGANIZATION_ID = OI2.ORGANIZATION_ID
AND OI1.ORG_INFORMATION_CONTEXT || '' = 'NZ_IRD_EMPLOYER'
AND OI2.ORG_INFORMATION_CONTEXT || '' = 'CLASS'
AND OI2.ORG_INFORMATION1 = 'HR_LEGAL'
AND OI2.ORG_INFORMATION2 = 'Y'
AND L.LOCATION_ID (+) = OU.LOCATION_ID