• 2022-06-05
    表employees中有字段title表示职务,字段salary表示工资,求各个职务平均工资的T-SQL语句是( )。
    A: SELECT AVG(SALARY) FROM EMPLOYEES WHERE TITLE
    B: SELECT AVG(SALARY) FROM EMPLOYEES GROUP BY TITLE
    C: SELECT AVG(TITLE) FROM EMPLOYEES GROUP BY SALARY
    D: SELECT SALARY FROM EMPLOYEES GROUP BY TITLE
  • 举一反三