Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Normalization Q . 1 : Given the relationBook _ Pub _ Author ( Title , PubId, AuId, Price, AuAddress ) The functional dependencies are given
Normalization Q: Given the relationBookPubAuthorTitle PubId, AuId, Price, AuAddressThe functional dependencies are given below Key Title PubId, AuIdTitle PubId, AuIDPriceAuIDAuAddress Which normal form is the relation? Normalize it up to NF Q: Given the relation CityPopulationCity Street, HouseNumber, HouseColor, CityPopulation key City Street, HouseNumberCity Street, HouseNumberHouseColorCityCityPopulation Which normal form is the relation? Normalize it up to NF Q Given the relation RA B C D E F G H The functional dependencies are given as follows: ABC DEFGHSo ABC is the primary key. The other functional dependencies are given as follows:BC DABC EE FE G Q Which normal form R is Q Is the relation is NF Why? Q Transform it into NF Q Is R and R are in NF Why?Q Transform R into NF Q: The relation schema and the functional dependencies are given as follows: RA B C D E F G H IABC DEFGHIB G B H D E D I Normalize up to NF User Management Q: There three students users S S and S two teacher users T and T and one departmental head Dr Sajjad user. The relational schema has been given as follows: Student Sid name, street, city. Mobile, email, CGPA, age, totcredEnroll courseid Sid, semester, year, gradeCourse courseid title, credithourTeacher Tid name, designation, street, city, Mobile, email, salary, dateofbirthOffer courseid Tid, semester, year, remuneration S S and S can insert and update on student and enroll table, T and T can insert and update on teacher and offer table and head can insert, delete and update to all tables. Manage these users byi. Granting individual privilegesii. Creating and granting role st for student, tch for teacher and hd for headiii. Give a comparison of these two methods. Q: New head is Dr Rashed. How can you authorize Dr rashed byi. Revoking and Granting individual privilegesii. Revoking and granting role. Integrity Constraint Q:Given the schemaStudent Sid name, street, city. Mobile, email, CGPA, age, totcredEnroll courseid Sid, semester, year, grade Define DDL to have the following integrity constraints:i The composite primary key will be courseid Sid, semester, yearii Semester can be only Spring, Summer or Fall.iii. Year must be higher than iv Grade must be to v Sid not present in student is not allowed in the enroll table. View Q: create a view stgrade with Sid, name, courseid grade for year Q: create a view stlist with Sid, name for year using the view stgrade Student Sid name, street, city. Mobile, email, CGPA, age, totcredEnroll courseid Sid, semester, year, gradeCourse courseid title, credithourTeacher Tid name, designation, street, city, Mobile, email, salary, dateofbirthOffer courseid Tid, semester, year, remuneration
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started