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

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

全部评论

相关推荐

点赞 评论 收藏
分享
有担当的灰太狼又在摸鱼:零帧起手查看图片
点赞 评论 收藏
分享
不像现在的我,已经是虚伪的社会人了。
真烦好烦真烦:好有个性的一段话,导师没有让你修改吗
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务