题解 | 统计员工薪资扣除比例

统计员工薪资扣除比例

https://www.nowcoder.com/practice/08db6f0135664ca598b579f8d53dc486

select t1.staff_id,t2.staff_name,concat(round(t1.dock_salary/t1.normal_salary*100,1),'%') as dock_ratio
from salary_tb as t1
left join staff_tb as t2 using(staff_id)
where staff_id in (
    select staff_id
    from staff_tb
    where department='dep1')
order by 3 desc

全部评论

相关推荐

joecii:如果没有工资,那可能没有工资是这家公司最小的问题了
找实习记录
点赞 评论 收藏
分享
脑袋锈住了:你这算啥,哥们中科院中强所硕士,本科211,叫我去干分拣,时薪20
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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