zoukankan      html  css  js  c++  java
  • 联合查询

    select  department.name

    from employee inner join department on departmentld=department.id  

    group by departmentld

    order by avg(salary) desc

    limit 0,3;

    查询不同部门的工资的前三名

    create view salary_view as

    select salary,employee.name as Employee_name ,departmentld, department.name as Department_name

    from employee inner join department on departmentld=department.id

    order by departmentld , salary desc;

  • 相关阅读:
    嵌入式驱动视频2019.03.24
    wps如何输入连续的长破折号
    python绘图问题
    2.13
    2.12
    2.10
    2.9
    2.8
    2.7
    2.5
  • 原文地址:https://www.cnblogs.com/by2016/p/6827931.html
Copyright © 2011-2022 走看看