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

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

http://www.nowcoder.com/practice/a32669eb1d1740e785f105fa22741d5c

通过对数字取余判断奇数还是偶数,使用and连接条件
select emp_no,birth_date,first_name,last_name,gender,hire_date from employees
WHERE emp_no%2=1 and last_name!='Mary'
order by hire_date DESC

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

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