쿼리 과제 1

tnaql·2024년 10월 31일

SQL 2

목록 보기
14/26

select employeenumber
from
where 1=1,
and workingyear >= 5,
and workingyear = yearsincurrentrole,
and yearsincelastpromotion >=1
and attrition = 'No'

select department, jobrole, joblevel, count(*) as HC
from
where 1=1,
and workingyear >= 5,
and workingyear = yearsincurrentrole,
and yearsincelastpromotion >=1
and attrition = 'No'
groupby 1,2,3
orderby 3 desc

profile
이직 준비중

0개의 댓글