DBMS LAB
DBMS LAB
------------------------------------------------------------------------------------------------------
Title: Design and implement a database and apply at least 10 different DML queries
for the following task. For a given input string display only those records which
match the given pattern or a phrase in the search string. Make use of wild characters
and LIKE operator for the same. Make use of Boolean and arithmetic operators
wherever necessary.
-------------------------------------------------------------------------------------------------------
1. Create table emp with attributes EMP_ID integer, ENAME varchar (15), JOB
varchar (15), HIREDATE DATE, SAL integer (10), COMM integer (10),
DEPT_NO integer (15).
2. Insert the records into the EMP table and display all the records of the emp
table.
4. Display all the information of emp table whose salary is greater than 2000
10. Display the salary of employee whose salary is in the range of 2000 to 5000.
SELECT * FROM emp_chk WHERE SAL BETWEEN 2000 AND 5000;
13.Display the name of employees whose name does not start with A.
SELECT * FROM emp_chk WHERE ENAME NOT LIKE 'A%';