DBMS Practical List
DBMS Practical List
By definition, pilots are those employees who are certified on at least one aircraft. An aircraft
can be used for any flight provided it has sufficient range. Pilots can pilot any flight provided
they are certified on an aircraft with sufficient range.
10. For the database created in ques 8, perform the following queries:
a. After creating the table I realized that I forgot to mention that only green, red, blue and black
color parts are allowed in parts relation. Write a query to add this constraint in parts relation.
b. For every supplier that only supplies green parts, print the name of the supplier and the total
number of parts that she supplies.
c. Increase the cost of each product by 10% which are green in color and are supplied by supplier
= “John”.
d. Authorize a user “Mary” to update color in “Parts” table. She can also pass the authorization to
other users.
11. For the database created in ques 8, perform the following queries:
a. Delete all the parts supplied by supplier “King”.
b. Drop the attribute color from parts relation.
c. Create a view for customers so that they can see only the supplier names, the name of parts
supplied by that supplier and their cost.