Computer Science

Give commission of Rs.500 to all employees who joined in year 1982 (table Empl).

DDL & DML

1 Like

Answer

Table Empl

EMPNOENAMEJOBMGRHIREDATESALCOMMDEPTNO
8369SMITHCLERK89021990-12-18800NULL20
8499ANYASALESMAN86981991-02-20160030030
8521SETHSALESMAN86981991-02-22125050030
8566MAHADEVANMANAGER88391991-04-022985NULL20
8654MOMINSALESMAN86981991-09-281250140030
8698BINAMANAGER88391991-05-012850NULL30
8839AMIRPRESIDENTNULL1991-11-185000NULL10
8844KULDEEPSALESMAN86981991-09-081500030
8882SHIAVNSHMANAGER88391991-06-092450NULL10
8886ANOOPCLERK88881993-01-121100NULL20
8888SCOTTANALYST85661992-12-093000NULL20
8900JATINCLERK86981991-12-03950NULL30
8902FAKIRANALYST85661991-12-033000NULL20
8934MITACLERK88821992-01-231300NULL10
UPDATE Empl
SET COMM = 500
WHERE YEAR(HIREDATE) = 1982;
Explanation

Since there are no employees who joined in the year 1982 according to the data provided in the "Empl" table, executing the given SQL query will result in no changes to the "COMM" column.

Answered By

1 Like


Related Questions