• 2022-06-06
    设有职工基本表:EMP(ENO,ENAME,AGE,SEX,SALARY),其属性分别表示职工号、姓名、年龄、性别、工资。为每个工资低于平均工资的女职工加薪200元,以下SQL语句正确的是______。
    A: UPDATE EMP SET SALARY=SALARY+200
    B: WHERE SALAEY<(SELECT AVG(SALARY)FROM EMP) AND SEX=’女’
    C: UPDATE FROM EMP SET SALARY=200
    D: WHERE SALAEY<(SELECT SUM(SALARY)FROM EMP)AND SEX=’女’
    E: UPDATE EMP SET SALARY=200
    F: WHERE SALAEY<(SELECT AVG(SALARY)FROM EMP)AND SEX=’女’
    G: UPDATE FROM EMP SET SALARY=SALARY+200
    H: WHERE SALAEY<(SELECT SUM(SALARY)FROM EMP)AND SEX=’女’
  • 举一反三