题解 | 查找employees表emp_no与last_name的员工信息

with tmp as (
select *,RIGHT(CAST(emp_no AS CHAR), 1) as lasts
from employees)

select emp_no,birth_date,first_name,last_name,gender,hire_date
from tmp 
where lasts % 2 = 1 and last_name != 'Mary'
order by hire_date desc;

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务