Computer Science

Increase salary of employee records by 10% (table employee).

DDL & DML

7 Likes

Answer

Table employee

IDFirst_NameLast_NameUser_IDSalary
1DimJosephJdim5000
2JaganathMishrajnmishra4000
3SiddharthMishrasmishra8000
4ShankarGirisgiri7000
5GautamBuddhabgautam2000
UPDATE employee
SET Salary = (Salary * 0.1) + Salary ;
Output

To view all the details (all columns and rows) of the "employee" table the below query is executed :

SELECT * FROM employee ;
+----+------------+-----------+----------+--------+
| ID | First_Name | Last_Name | User_ID  | Salary |
+----+------------+-----------+----------+--------+
|  1 | Dim        | Joseph    | Jdim     |   5500 |
|  2 | Jaganath   | Mishra    | jnmishra |   4400 |
|  3 | Siddharth  | Mishra    | smishra  |   8800 |
|  4 | Shankar    | Giri      | sgiri    |   7700 |
|  5 | Gautam     | Buddha    | bgautam  |   2200 |
+----+------------+-----------+----------+--------+

Answered By

6 Likes


Related Questions