INTERVIEW QUESTIONS: DATA MANIPULATION LANGUAGE (DML) COMMANDS

20 programming challenges to help you master the fundamentals of DATABASE MANAGEMENT SYSTEM USING ORACLE.

1

Delete employees earning less than the average salary.

2

Delete employees whose department is located in NEW YORK.

3

Delete employees working in departments with less than 3 employees.

4

Delete employees who earn less than all MANAGERS.

5

Delete employees whose salary equals the minimum salary of their department.

6

Increase salary by 15% for employees earning less than department average.

7

Delete employees who are not managers but earn more than at least one manager.

8

Insert employees with highest salary from each department into TOP_EMP table.

9

Update commission to 10% of salary for SALESMAN.

10

Delete employees who earn the second highest salary in the company.

11

Insert employees earning more than 3000 into EMP_HIGH_SAL table.

12

Insert employees working in department 20 into EMP_DEPT20 table.

13

Insert employee name and salary into EMP_SAL_REPORT from EMP table.

14

Insert employees whose job is MANAGER into EMP_MANAGER table.

15

Insert employees hired after 1982 into EMP_RECENT table.

16

Increase salary of employees who work in department 20.

17

Update salary of employees to match the average salary of their department.

18

Update salary of employees earning less than department average.

19

Update department number of employees working in DALLAS.

20

Update salary of employees who earn less than manager salary.