DBMS Lab Da-2
DBMS Lab Da-2
DBMS Lab Da-2
AIRLINE Databases
6. Miscellaneous
a) Create an empty table myflight with same structure as flight table.
b) Create a table fare with same contents as fare table.
c) Create a table with flightno, legno, arrivalairportcode.
d) Insert values into this table from existing tables.
e) Create a virtual table that contains flightno, arrival airport name.
f) Increase the fare amount by 5%.
g) Create a view for Q.3
h) Create a view with airplane id, company name where
max_seatstotal_number_of_seats>10.
i) Update a company name in the view in Q.7.
j) Display the structure of all tables.
k) Drop the unique constraint added.
l) Create a sequence with minimum value 1 max 200, increment by 2 start with 4
to generate values to the airplane id column.
m) Alter the above sequence to have maximum value 300.
n) Create an index on state column of airport table.
o) Select the flights on Wednesday ('wed'). ( Query with Object type)
p) Write a query to show the constraints (plus column) created on the Table
already existing.
q) Write a query to show the sequences created by the user.
r) Write a query to show the procedures, functions, triggers already created.
s) Write a query to show all the details about constraints.
t) Write a query to see the body of a procedure or function.
u) Write a query to see the body of trigger.