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

统计员工薪资扣除比例

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

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

全部评论

相关推荐

04-08 23:37
已编辑
东华大学 结构工程师
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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