Query to get geography wise filing status in Fusion HCM

 select ide.identifier_value Geography ,lookup_code code, meaning filing_status
from fnd_lookup_values_vl LV,
hz_geographies GEO,
hz_geography_identifiers IDE
where lookup_type like 'HRX_US_STATE_FILING_STATUS_%'
AND SUBSTR(lookup_type,LENGTH('HRX_US_STATE_FILING_STATUS_')+1,2) = geo.geography_code
AND GEO.GEOGRAPHY_TYPE = 'STATE'
AND GEO.COUNTRY_CODE = 'US'
AND GEO.GEOGRAPHY_ID = ide.geography_id
AND ide.identifier_subtype = 'STANDARD_NAME'
AND ide.primary_flag = 'Y'
union all
select decode(lookup_type, 'HRX_US_FEDERAL_FILING_STATUS','Federal','Local') AS Geography, lookup_code, meaning 
from fnd_lookup_values_vl 
where lookup_type in ('HRX_US_FEDERAL_FILING_STATUS','HRX_US_LOCAL_FILING_STATUS')
union all
select ide.identifier_value Geography ,lookup_code code, meaning filing_status
from fnd_lookup_values_vl LV,
hz_geographies GEO,
hz_geography_identifiers IDE
where lookup_type like 'ORA_HRX_US_STATE_FILNG_STAT_%'
AND SUBSTR(lookup_type,LENGTH('ORA_HRX_US_STATE_FILNG_STAT_')+1,2) = geo.geography_code
AND GEO.GEOGRAPHY_TYPE = 'STATE'
AND GEO.COUNTRY_CODE = 'US'
AND GEO.GEOGRAPHY_ID = ide.geography_id
AND ide.identifier_subtype = 'STANDARD_NAME'
AND ide.primary_flag = 'Y'

Comments

Popular posts from this blog

Query to get Salary Change details in Fusion HCM

Oracle Fusion HCM - Enhancements to Summary of Changes and History Sections in Redwood Workforce Structures Pages

๐Ÿงพ Streamlining Payroll Operations with Oracle Payroll Activity Center