DATA MANIPULATION LANGUAGE (DML) COMMANDS

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

1

Insert a record into STUDENT table with values:

SID = 101, SNAME = 'RAHUL', AGE = 20, COURSE = 'MCA'.

2

Insert a record into EMPLOYEE table with

EID = 201, ENAME = 'ANITA', SALARY = 45000, DEPTNO = 10.

3

Insert a new department into DEPT table; DEPTNO = 50, DNAME = 'TRAINING', LOC = 'DELHI'

4

Insert a record into BOOK table with only BOOK_ID, TITLE, and PRICE.

5

Insert multiple rows into COURSE table.

6

Insert data into EMP_COPY table from the EMP table.

7

Insert employees from EMP whose salary is greater than 3000 into EMP_HIGH_SAL.

8

Insert employees hired after 1981 into EMP_NEW_HIRE.

9

Insert department numbers and names from DEPT into a table called DEPT_BACKUP.

10

Insert employee names and salaries into a table EMP_SALARY_RECORD.

11

Update the salary of employee SMITH to 2000.

12

Increase salary of all employees by 10%.

13

Update the department number of employee ALLEN to 20.

14

Update commission of SALESMAN to 500.

15

Update job of employee MILLER to MANAGER.

16

Increase salary of employees in department 10 by 20%.

17

Update salary of employees whose job is CLERK to 1500.

18

Update location of department 30 to MUMBAI.

19

Update commission of employees who have NULL commission to 100.

20

Update salary of employees who earn less than average salary.

21

Delete employee SMITH from EMP table.

22

Delete all employees working in department 30.

23

Delete employees whose salary is less than 1000.

24

Delete employees hired before 1981.

25

Delete employees who do not receive commission.

26

Delete departments located in CHICAGO.

27

Delete employees whose job is CLERK.

28

Delete employees earning the minimum salary.

29

Delete employees working in departments located in NEW YORK.

30

Delete employees whose manager number is NULL.