Q.No Aim/Principle/ Apparatus Required/procedure Tabulation/Circuit/ Program/Drawing Calculation & Results Viva-Voce Record Total 1 5 25 10 10 10 100 2 5 25 10 Q.NO. Experiment List
Q.No Aim/Principle/ Apparatus Required/procedure Tabulation/Circuit/ Program/Drawing Calculation & Results Viva-Voce Record Total 1 5 25 10 10 10 100 2 5 25 10 Q.NO. Experiment List
(Regulations 2017)
7. Consider a view branch_cust defined as follows:
Create view branch_cust as
select branch_name, customer_name
from depositor, account
where depositor.account_number =
account.account_number.
suppose that a view is materialized; that is the view is computed and
stored. Write a trigger to maintain the view, that is, to keep it up-to-
date on insertions to and deletions from depositor or account. Do not
bother about updates.
10. Suppose you have a table named data_table that holds data collected from laboratory
experiments, and you want to analyze the data from experiment 1.Compute the results and
store them in a database table named temp.
11. Write a program in PL/SQL to create a cursor displays the name and salary of each employee
in the Employees table whose salary is less than that specified by a passed-in parameter value.
12. Given Student_Report Database, in which student marks assessment is recorded. In such
schema, create a trigger so that the total and average of specified marks is automatically
inserted whenever a record is insert.
Page 4 of 5
13. Write a PL/SQL function to calculate the income tax for the given employee:
Conditions:
If pay 2,50,000, no tax is charged.
If pay is 2,50,001 and 5,00,000, 5% of pay is charged as tax.
If pay is 5,00,001 and 10,00,000, 20% of pay is charged as tax.
If pay is 10,00,001, 30% of pay is charged as tax. .
14. Design a database for an Airline. The database must keep track of customers and their
reservations, flights and their status, seat assignments on individual flights, and the schedule
and routing of future flights.
Your design should include an E-R diagram, a set of relational schemas, and a list of
constraints, including primary-key and foreign-key constraints.
15. Consider a database used to record the marks that students get in different exams of different
courses offerings.
Construct an ER diagram that models exams as entites, and uses a ternary relationship,
for the database.
Construct and alternative ER diagram that uses only a binary relationship between
students and course_offerings. Make sure that only one relationship exists between a
particular student and course offering pair, yet you can represent the marks that a
student gets in different exams of a course offering.
16. Consider the employee relational database, Where the primary keys are underlined.
Employee ( employee_name, street, city)
Works ( employee_name, company_name, salary)
Company ( comapny_name, city)
Manages ( employee_name, manager_name)
Find all employees in the database who earn more than each employee of Small Bank
Corporation.
Assume that the companies may be located in several cities. Find all companies located
in every city in which Small Bank Corporation is located.
Give all managers of first Bank Corporation a 10 percent raise unless the salary
becomes greater than $100,000; in such cases, give only a 3 percent raise.
19. An Electricity Board charges the following rates to domestic users to discourage large
consumption of energy:
For the first 1 - 200 units { 1 - 100 units = Rs. 1.00, 101 - 200 units = Rs.1.50 }
From 201 - 500 units{ 1 - 200 units = Rs. 2.00 and 201 - 500 units = Rs. 3.00 }
Above 500 units{ 1 - 200 = Rs. 3.50, 201- 500 unit = Rs. 4.60 &above 500 unit Rs.6.60}
Write a PL/SQL program to read the connection_id of users and number of units consumed,
display the charges with names.
20. Create a table salesman{ salesman_id, name, city, commission } and customer{customer_id,
name, city, grade, slaesman_id}. Write the following query:
Create a view for those salesmen belongs to the city New York
Create a view for all salesmen with columns salesman_id, name, and city
Find the salesmen of the city New York who achieved the commission more than 13%.
Create a view to getting a count of how many customers we have at each level of a grade.
*********