본문 바로가기
SQL

leetcode 1873. Calculate Special Bonus

by 무적김두칠 2022. 3. 29.

1
2
3
4
5
/* Write your PL/SQL query statement below */
select
employee_id
,case when mod(employee_id, 2)=1 and substr(name,1,1)!='M' then salary else 0 end as bonus
from employees;
cs
반응형

댓글