(VOLUME, NUMBER, STARTPGE, ENDPAGE, TITLE, YEAR, PRICE)
The primary key is (VOLUME, NUMBER, STARTPAGE, ENDPAGE) and the following functional dependencies exist in the schema.
(VOLUME, NUMBER, STARTPAGE, ENDPAGE) -> TITLE
(VOLUME, NUMBER) -> YEAR
(VOLUME, NUMBER, STARTPAGE, ENDPAGE) -> PRICE
The database is redesigned to use the following schemas.
(VOLUME, NUMBER, STARTPAGE, ENDPAGE, TITLE, PRICE)
(VOLUME, NUMBER, YEAR)
Which is the weakest normal form that the new database satisfies, but the old one does not?
Correct : N
Given:
Original schema: R(VOLUME, NUMBER, STARTPAGE, ENDPAGE, TITLE, YEAR, PRICE)
Primary Key: (VOLUME, NUMBER, STARTPAGE, ENDPAGE)
Functional Dependencies:
FD1: (VOLUME, NUMBER, STARTPAGE, ENDPAGE) → TITLE
FD2: (VOLUME, NUMBER) → YEAR
FD3: (VOLUME, NUMBER, STARTPAGE, ENDPAGE) → PRICE
Redesigned schemas:
R1(VOLUME, NUMBER, STARTPAGE, ENDPAGE, TITLE, PRICE)
R2(VOLUME, NUMBER, YEAR)
To find:
The weakest normal form that the new database satisfies, but the old one does not.
Solution:
First, let me analyze the normal form of the original schema R.
The candidate key for R is (VOLUME, NUMBER, STARTPAGE, ENDPAGE).
So the prime attributes are: VOLUME, NUMBER, STARTPAGE, ENDPAGE.
The non-prime attributes are: TITLE, YEAR, PRICE.
Looking at FD2: (VOLUME, NUMBER) → YEAR.
Here, (VOLUME, NUMBER) is a proper subset of the candidate key, and YEAR is a non-prime attribute.
This means there is a partial dependency, so R violates 2NF.
Thus, the original schema is only in 1NF.
Now, let me check the redesigned schemas.
For relation R1:
The candidate key is (VOLUME, NUMBER, STARTPAGE, ENDPAGE).
The functional dependencies are:
(VOLUME, NUMBER, STARTPAGE, ENDPAGE) → TITLE
(VOLUME, NUMBER, STARTPAGE, ENDPAGE) → PRICE
In both FDs, the left-hand side is a superkey. So R1 is in BCNF.
For relation R2:
The candidate key is (VOLUME, NUMBER).
The functional dependency is:
(VOLUME, NUMBER) → YEAR
Here too, the left-hand side is a superkey. So R2 is in BCNF.
Since both R1 and R2 are in BCNF, the new database satisfies 2NF, 3NF, and BCNF.
The old database does not satisfy 2NF, 3NF, or BCNF.
Among the normal forms that the new database satisfies but the old one does not (2NF, 3NF, BCNF), the weakest one is 2NF.
Answer:
(B) 2NF
Similar Questions
Total Unique Visitors