DB
스마트팩토리 1주 3일차 DB 3일차 DB
다중행 함수 =>그룹함수, 통계함수 create table emp1asselect * from ad30.emp1 ; select trunc ( to_char(sysdate, 'yyyy') - to_char( HIRE_DATE, 'yyyy') + 1, -1 ) as 연령대, count(* ) as 인원수, trunc ( count(* ) / ( select count(*) from EMP1 ) , 2) as 비율from EMP1group by trunc ( to_char(sysdate, 'yyyy') - to_char( HIRE_DATE, 'yyyy') + 1, -1 ) order by 1 ; **** 조인연관이 있는 여러 테이블로부터 데이터를 검색하는 방법 Equiijoin Non-Equiijoin c..
2021. 4. 30. 07:33
최근댓글