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

统计员工薪资扣除比例

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

select 
    st.staff_id as staff_id,
    st.staff_name as staff_name,
    concat(round((sa.dock_salary * 100 / sa.normal_salary), 1), '%') as dock_ratio
from  staff_tb as st   
    left join  salary_tb as sa on st.staff_id = sa.staff_id 
where st.department = 'dep1'
order by dock_ratio desc
#简单
#concat输出%

全部评论

相关推荐

牛客28967172...:跟着卡子哥才是正道,灵茶属实不太行
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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