SELECT RSEID,                    
       INSTDT,                   
       CITYCD,                   
       REGIONCD,                 
       AREACD,                   
       RSEIP,                    
       (COORDX/10000000) COORDX, 
       (COORDY/10000000) COORDY, 
       RADIUS1,                  
       RADIUS2,                  
       COMPCD,                   
       LOCATION,                 
       RSECONFIGID,              
       OBEPARAMID,               
       PORT,                     
       BRIDGE,                   
       COMYN                     
  FROM RUTIS.RSEMST              


-- 등록 시설물
SELECT 'RSE' AS FAC_TYPE, RSEID AS FAC_ID, LOCATION AS FAC_NM, 'N' AS DEL_YN
  FROM RUTIS.RSEMST

--시설물 상태
SELECT 'RSE' AS FAC_TYPE, B.RSEID AS FAC_ID,
       '1' AS COMM, '0' AS DOOR
  FROM RUTIS.RSEOPSTATE A, RUTIS.RSEMST B
 WHERE B.RSEID = A.RSEID                 
   AND A.COLLDT > SYSDATE - 30/1440      
