SELECT DMTHD1.LM_CI_ID , DMTHD1.LM_ROW_MAINT_DTTM FROM PS_LM_DMTHD_TBL DMTHD1 WHERE %CurrentDateIn BETWEEN DMTHD1.EFFDT AND DMTHD1.LM_END_EFFDT UNION SELECT CI2.LM_CI_ID , CI2.LM_ROW_MAINT_DTTM FROM PS_LM_CI_TBL CI2 WHERE %CurrentDateIn BETWEEN CI2.EFFDT AND CI2.LM_END_EFFDT UNION SELECT DMTHD2.LM_CI_ID , DMTYP2.LM_ROW_MAINT_DTTM FROM PS_LM_DMTHD_TBL DMTHD2 , PS_LM_DMTH_TYP_TBL DMTYP2 WHERE %CurrentDateIn BETWEEN DMTHD2.EFFDT AND DMTHD2.LM_END_EFFDT AND DMTHD2.LM_DMTHD_TYPE_ID = DMTYP2.LM_DMTHD_TYPE_ID
|