DBA Data[Home] [Help]

VIEW: APPS.HR_FR_ALTERNATE_LOOKUPS

Source

View Text - Preformatted

SELECT ut.business_group_id ,ut.user_table_name ,uc.user_column_name ,ur.row_low_range_or_name ,uci.value ,greatest(ur.effective_start_date ,uci.effective_start_date) ,least(ur.effective_end_date,uci.effective_end_date) from pay_user_tables ut ,pay_user_rows_f ur ,pay_user_columns uc ,pay_user_column_instances_f uci WHERE ut.user_table_id = ur.user_table_id and ut.user_table_id = uc.user_table_id and uc.user_column_id = uci.user_column_id and ur.user_row_id = uci.user_row_id and ur.effective_start_date <= uci.effective_end_date and ur.effective_end_date >= uci.effective_start_date
View Text - HTML Formatted

SELECT UT.BUSINESS_GROUP_ID
, UT.USER_TABLE_NAME
, UC.USER_COLUMN_NAME
, UR.ROW_LOW_RANGE_OR_NAME
, UCI.VALUE
, GREATEST(UR.EFFECTIVE_START_DATE
, UCI.EFFECTIVE_START_DATE)
, LEAST(UR.EFFECTIVE_END_DATE
, UCI.EFFECTIVE_END_DATE)
FROM PAY_USER_TABLES UT
, PAY_USER_ROWS_F UR
, PAY_USER_COLUMNS UC
, PAY_USER_COLUMN_INSTANCES_F UCI
WHERE UT.USER_TABLE_ID = UR.USER_TABLE_ID
AND UT.USER_TABLE_ID = UC.USER_TABLE_ID
AND UC.USER_COLUMN_ID = UCI.USER_COLUMN_ID
AND UR.USER_ROW_ID = UCI.USER_ROW_ID
AND UR.EFFECTIVE_START_DATE <= UCI.EFFECTIVE_END_DATE
AND UR.EFFECTIVE_END_DATE >= UCI.EFFECTIVE_START_DATE