LM_ROOM_CNF_VW(SQL View) |
Index Back |
---|---|
Session Room ConflictsSession Room Conflicts View |
SELECT SES1.LM_ACT_ID , SES1.LM_LC_ID , SES1.LM_SES_ID , SES1.LM_FCLTY_ID , SES1.LM_ROOM_ID , SES1.LM_SES_DT , SES1.LM_START_TM , SES1.LM_END_TM , SES1.TIMEZONE , SES2.LM_ACT_ID , SES2.LM_LC_ID , SES2.LM_SES_ID , 0 , ACT.LM_ACT_STATUS FROM PS_LM_SES SES1 , PS_LM_SES SES2 , PS_LM_ACT ACT WHERE SES1.LM_SES_ID <> SES2.LM_SES_ID AND SES1.LM_SES_DT = SES2.LM_SES_DT AND SES1.LM_FCLTY_ID = SES2.LM_FCLTY_ID AND SES1.LM_ROOM_ID = SES2.LM_ROOM_ID AND SES1.LM_ROOM_ID <> 0 AND SES1.TIMEZONE = SES2.TIMEZONE AND ((SES1.LM_START_TM >= SES2.LM_START_TM AND SES1.LM_START_TM < SES2.LM_END_TM) OR (SES1.LM_END_TM > SES2.LM_START_TM AND SES1.LM_END_TM <= SES2.LM_END_TM) OR (SES1.LM_START_TM <= SES2.LM_START_TM AND SES1.LM_END_TM >= SES2.LM_END_TM)) AND SES2.LM_ACT_ID = ACT.LM_ACT_ID UNION SELECT DISTINCT SES1.LM_ACT_ID , SES1.LM_LC_ID , SES1.LM_SES_ID , SES1.LM_FCLTY_ID , SES1.LM_ROOM_ID , SES1.LM_SES_DT , RSRV.LM_START_TM , RSRV.LM_END_TM , RSRV.TIMEZONE , RSRV.LM_RSRV_RM_ID , 0 , 0 , RSRV.LM_RSRV_RM_ID , ' ' FROM PS_LM_SES SES1 , PS_LM_RSRV_RM RSRV , PS_LM_ACT ACT WHERE SES1.LM_SES_DT = RSRV.LM_SES_DT AND SES1.LM_FCLTY_ID = RSRV.LM_FCLTY_ID AND SES1.LM_ROOM_ID = RSRV.LM_ROOM_ID AND SES1.LM_ROOM_ID <> 0 AND SES1.TIMEZONE = RSRV.TIMEZONE AND ((SES1.LM_START_TM >= RSRV.LM_START_TM AND SES1.LM_START_TM < RSRV.LM_END_TM) OR (SES1.LM_END_TM > RSRV.LM_START_TM AND SES1.LM_END_TM <= RSRV.LM_END_TM) OR (SES1.LM_START_TM <= RSRV.LM_START_TM AND SES1.LM_END_TM >= RSRV.LM_END_TM)) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | LM_ACT_ID | Number(10,0) | DECIMAL(10) NOT NULL | Activity ID |
2 | LM_LC_ID | Number(10,0) | DECIMAL(10) NOT NULL | Learning Component ID - Blended Learning |
3 | LM_SES_ID | Number(10,0) | DECIMAL(10) NOT NULL | Session ID |
4 | LM_FCLTY_ID | Number(10,0) | DECIMAL(10) NOT NULL | Facility ID |
5 | LM_ROOM_ID | Number(10,0) | DECIMAL(10) NOT NULL | Room ID |
6 | LM_SES_DT | Date(10) | DATE | Session Date |
7 | LM_START_TM | Time(15) | TIMESTAMP | Start Time |
8 | LM_END_TM | Time(15) | TIMESTAMP | End Time |
9 | TIMEZONE | Character(9) | VARCHAR2(9) NOT NULL | Time Zone |
10 | LM_CNFL_ACT_ID | Number(10,0) | DECIMAL(10) NOT NULL | Conflicting Activity ID |
11 | LM_CNFL_LC_ID | Number(10,0) | DECIMAL(10) NOT NULL | Learning Component ID for Conflict Checking |
12 | LM_CNFL_SES_ID | Number(10,0) | DECIMAL(10) NOT NULL | Conflicting Session ID |
13 | LM_RSRV_RM_ID | Number(10,0) | DECIMAL(10) NOT NULL | Reserve Room ID |
14 | LM_ACT_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Activity Status
1=Active 2=Inactive 3=Closed 4=Pending 5=Concluded |