NIELIT A Level Introduction to Database Management System Assignment 11Manufacturing
Consider the following relation that keeps track of the orders placed by a manufacturing
Orders(orderDate, deliveryDate, supplier, partID, material, price).
Suppose the following functional dependencies hold on the relation:
orderDate, supplier -> deliveryDate
partID, supplier, orderDate -> price
partID -> material
material -> supplier.
a) Decompose the relation in smaller relations such that
– each of the smaller relations is in BNCF with respect to the projection
of the original dependencies;
– the decomposition is a lossless join decomposition.
b) Is your decomposition dependency preserving? If your answer is “yes”,
argue why. If your answer is “no”, show which dependencies have been
Note Solve the assignments from 12 to 20 through Select as well as through relational
Database Schema for the exercise:
Professor ( ssn , profname, status, salary)
Course( crscode ,crsname,credits)
a) Each course has only one instructor in each semester.
b) All professors have different salaries.
c) All professors have different names
d) All courses have different names
e) Status can take value from “full”,”associate” , and “assistant”.
- Return those professors who have taught “csc6710” but never “csc7710”
- Return those professors who have taught “csc6710” and “csc7710” in same semester.
- Return those professors who have taught “csc6710 “ or “csc7710” but not both.
- Return that course which have never been taught.
- Return that courses that have been taught atleast in two semester.
- Return the names of all professors who have ever taught “csc7710”.
- Change all credits to 4 for those courses that are taught in semester “f2006:.
- Return the professor who earns second highest salary.
- Delete those professors who have never taught.