Database Management System Internal Lab
2. A) Write a query for age of youngest sailor for each rating level?
3. A) Write a query for the names of sailors who have reserve red boat but not green boat?
B) Write a query to find details having the second highest salary from all employees
B) Write and Explain any 5 string related functions with queries?
5. A) PL/SQL CODE uses a nested basic loop to find the prime numbers from 2 to 50?
B) Write and Explain any 5 Aggregate functions with queries?
6. A) NO_DATA_FOUND: It is raised WHEN a SELECT INTO statement returns no rows?
B) Write a query for the names of sailors who have reserve both red and green boats?
B) Write a query for the sid’s of sailors who’s rating is better than some sailors called horataio?
8. A) PL/SQL Code to create and a Function which counts no.of customers in above customers table.
B) PL/SQL Stored Procedures to find biggest of three numbers
9. A) PL/SQL Code for Using the Package to add, delete and list customer.
B) Write a query for the sid’s of sailors who’s rating is better than all sailors called horatio?
B) Write a query for the names of sailors who have reserve a boat 103