Lab Assignment
Lab Assignment
Lab Assignment
C. Add save point after insertion of records and verify save point.
D. Add constraints not null and primary key to the sailor table.
3 a. create a user and grant all permissions to the use
b. Use revoke command to remove user permissions.
c. Add constraint primary key, foreign key and not null to the reserves table
d. Delete constraint not null to the table column
WEEK 3
1. A. By using the group by clause, display the enames who belongs to deptno 10 along
with average salary
C. Display employees who earn more than the lowest salary in department 30
3List all employee names, salary and 15% rise in salary
Show the average salary for all departments employing more than two people
By using the group by clause, display the eid who belongs to deptno 05 along with average salary
4a Count the number of employees in department 20
List the minimum and maximum salaries for each job type.
5.a. Find the sids ,names of sailors who have reserved all boats called “INTERLAKE”
Find the age of youngest sailor who is eligible to vote for each rating level with at least two such sailors.
Find the sname , bid and reservation date for each reservation.
Find the ages of sailors whose name begin and end with B and has at least 3 characters.
List in alphabetic order all sailors who have reserved red boat.
Find the age of youngest sailor for each rating level.
6. List the Vendors who have delivered products within 6 months from order date
Display the Vendor details who have supplied both Assembled and Sub parts.
Display the Sub parts by grouping the Vendor type (Local or Non Local).