요즘 세상
[오라클] 뷰 테이블
--GRANT CREATE VIEW TO SCOTT;CREATE OR REPLACE VIEW VIEW_NEWSAWON --뷰테이블을 만드는데 없으면 만들고 있으면 이것으로 대체 해라ASSELECT T.SANO AS "사원번호", T.NAME AS "사원명", T.JUBUN AS "주민번호", T.GENDER AS "성별", T.AGE AS "현재나이", TRUNC(T.AGE, -1) AS "연령대", T.YEARPAY AS "연봉", T.HIREDATE AS "입사일자", TO_CHAR(ADD_MONTHS(SYSDATE, (60-T.AGE) * 12), 'YYYY') || TO_CHAR(T.HIREDATE, '-MM-DD') AS "정년퇴직일", TRUNC(( T.YEARPAY / 12 ) * TRUNC..
2014. 2. 27.