문제 링크 : https://velog.io/@yooha9621/SQLP실기문제-DBCall최소화53번
SQL >
select distinct get_username ( 사원ID )
from 휴가기록
where 휴가일자 >= add_months(sysdate,-1);
SQL >
select distinct get_username ( 사원ID )
from 휴가기록
where 휴가일자 >= add_months(sysdate,-1)
group by 사원ID;
🍎 정리
- 결과의 사원ID 종류 수만큼 get_username 함수가 실행될 수 있도록 group by절을 추가한다.