SELECT DISTINCT SES1.LM_FCLTY_ID , SES1.LM_ROOM_ID , 0 , CIT1.LM_CI_ID , SES1.LM_SES_DT , SES1.LM_START_TM , SES1.LM_END_TM , SES1.TIMEZONE FROM PS_LM_SES SES1 , PS_LM_RSRV_RM RMR1 , PS_LM_ACT ACT1 , PS_LM_CI_TBL CIT1 WHERE CIT1.LM_CI_ID = ACT1.LM_CI_ID AND ACT1.LM_ACT_ID = SES1.LM_ACT_ID AND %Sql(LM_RSRV_CNF_SQL, SES1, RMR1) UNION SELECT DISTINCT RMR2.LM_FCLTY_ID , RMR2.LM_ROOM_ID , RMR2.LM_RSRV_RM_ID , 0 , RMR2.LM_SES_DT , RMR2.LM_START_TM , RMR2.LM_END_TM , RMR2.TIMEZONE FROM PS_LM_SES SES2 , PS_LM_RSRV_RM RMR2 WHERE %Sql(LM_RSRV_CNF_SQL, SES2, RMR2) UNION SELECT DISTINCT RMR3.LM_FCLTY_ID , RMR3.LM_ROOM_ID , RMR3.LM_RSRV_RM_ID , 0 , RMR3.LM_SES_DT , RMR3.LM_START_TM , RMR3.LM_END_TM , RMR3.TIMEZONE FROM PS_LM_RSRV_RM RMR3 , PS_LM_RSRV_RM RMR4 WHERE RMR3.LM_RSRV_RM_ID <> RMR4.LM_RSRV_RM_ID AND %Sql(LM_RSRV_CNF_SQL, RMR3, RMR4)
|