Practical List DBMS
Practical List DBMS
4 .Insert 5 rows in the above table Emp using INSERT command of SQL.
**1. Create a table EMPLOYEE with following schema: Emp(Emp_no, E_name,, Dept_no,
Dept_name,Job_id, Salary,hiredate)
C.Display the information of employees working in department PRODUCTION and salary above
40000.
e.Delete the employee working in SALES department having salary below 10000.
iii. Select dept_no from Emp minus Select dept_no from Dept;
iv. Select * from Emp where salary Emp_no between 100 and 200;
a. Display the name of employees having salary greater than 40000 & working sales department.
b. Display the name of employees who are not working in sales department.
b) Select power(4,2) from dual; d) Select mod(10,3) from dual; e) Select sqrt(16) from dual;
a. Display information of employees whose salary is greater than average salary of all employees.
Dept(deptno,deptname, location.jobtype)
1. Create user john and implement the following commands on table Dept.
3. Write a query to grant update privileges on columns detpno and location on Dept table
7. Write query to assign above system privileges to users jyoti and john.
9. Write query to assign above object privileges to users jyoti and john.