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

select st.staff_id as staff_id,
    st.staff_name as staff_name,
    concat (round(dock_salary / normal_salary * 100, 1), '%') as dock_ratio
from
    staff_tb st,
    salary_tb sa
where
    st.staff_id = sa.staff_id
    and st.department = 'dep1'
order by
    (dock_salary / normal_salary) desc

全部评论

相关推荐

09-26 19:45
门头沟学院 Java
点赞 评论 收藏
分享
青春运维少年不会梦到...:实习大王
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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