DBMS Lab Q
DBMS Lab Q
2.
a) Find the customer name whose city is ‘Delhi’ for the following
schema Customer (custid, custname, custcity, custphno, custsalary).
b) Write a query to find third highest salary
c) Use all the aggregate functions on the given schema.
d) Write a query to find the customername in order
3.
a) create table which allows all the constraints for the following schema
Product (pid, pname, pprice) , Order (oid, pid, quantity, odate) and pid of
order has references to product
b) Find the products which are ordered on 15|September|2021.
c) Find the product whose name end with ‘r’.
d) Find the employees whose name contains atleast 3 characters.
4.
a) Consider the following schema and find the departmentno and name
of an employ who is drawing highest salary. Employ (empid, salary,
ename, deptno), Department (deptno, dname, managerid, location)
b) Use all the aggregate functions on the given schema.
c) Use Set Operations on the given schema
5.
a) Consider the following schema
8. Create table which allows all the constraints for the following schema
Product (pid, pname, pprice) , Order (oid, pid, quantity, odate) and pid of order
has references to product
a) Use Set Operations on the given schema
b) Write a query to update the pname.
c) Use all aggregation functions on given both schema.
d) Find the pname whose name starts with ‘h’