In: Computer Science
******Please don't use handwriting and i need unique answer ... Thank you
Q3:
Consider the following relation:
Student-Dept = (Student-ID, Course, SportActivity, Dept-Name, Building)
Having following multivalued dependencies:
F ={ Student-ID ®® Course
Student-ID ®® SportsActivity
Dept-Name ®® Building }
Explain in your own words why the Student-Dept relation is not in 4NF. Then, convert the Student-Dept relation in 4NF. Also, provide the justification for each step you perform during normalization (4NF). Note: The SportActivity here means any sport a student is participating in. For example, a student with ID = 123 can participate in soccer and badminton.
Q4:
In your own word, explain why do designers use Denormalization? What is the limitation of using Denormalization? Name and explain a better alternative approach than Denormalization.
The answer to question no 4
why do designers use Denormalization?
Denormalization is a methodology utilized on a formerly standardized information base to expand execution. The thought behind it is to add excess information where we figure it will help us the most. We can utilize additional credits in a current table, add new tables, or even make occurrences of existing tables. The standard objective is to diminish the showing season of select questions to making information more open to the inquiries or by creating summed up reports in independent tables. This cycle can bring some new issues, and we'll examine them later.
A standardized information base is the beginning stage for the denormalization cycle. It's critical to separate from the information base that has not been standardized and the information base that was standardized first and afterward denormalized later. The subsequent one is alright; the first is regularly the consequence of an awful information base plan or an absence of information.
What is the limitation of using Denormalization?
Name and explain a better alternative approach than Denormalization.
In spite of the fact that, denormalized composition can significantly improve execution under extraordinary read-stacks however the updates and embeds become intricate as the information is copy and thus must be refreshed/embedded in more than one spots.
One clean approach to tackling this issue is using triggers. For instance for our situation where the requests table has the product_name segment too, when the estimation of product_name must be refreshed, at that point it should essentially be possible in the accompanying manner:
Nonetheless, while denormalizing the composition, do mull over, the occasions you would refresh records contrasted with the occasions you would execute SELECTs. When blending standardization and denormalization, center around denormalizing tables that are understood concentrated, while tables that are compose escalated keep them standardized.