Question

** use your own words, don't copy and paste, don't use handwriting, please. i need your...

** use your own words, don't copy and paste, don't use handwriting, please. i need your references URL Link please**

What is Denormalization? Explain this technique and discuss the following:
- The advantages and the disadvantage of using this technique in Database design.
- Why, alternatively in some situations, we might use Materialized View instead of Denormailization? Provide an example to support your arguments.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Q1.

Before denormalization, let's discuss normalization. The primary purpose of normalization is to reduce the redundancy and maintain consistent data in the database. A database consists of multiple tables, and each will be mapped with another by referral integrity. So if we need any related data, we would join the related tables and get the records. This will work fast if the database is small and contains a few records. But In the real world, the database will contain lots of records(Imagine millions of records). When we normalize the table we might not think about the growth of data. So when there will be a large number of records, the cost of the query will increase drastically, this is because it has to join multiple tables to get the records and these tables are not smaller. Any smallest query on the table will have to traverse the table till it gets the record.

Any user accessing the database is more interested in quick and correct result than how a database is designed. Hence if we introduce redundancy in the table and if the performance of the query increases, then we can ignore 3NF. This is known as denormalization. In this process, a normalized table will be rejoined to have the redundancy in the table to increase the performance of the query. Denormalization need not be true in all cases. It all depends on the data. In addition, it also depends on the redundant column which we are re-introducing into the table and frequency of this column update.

Advantages:

1.The data is present in the same table so there is no need for any joins, hence the selects are very fast.

2.A single table with all the required data allows much more efficient index usage. If the columns are indexed properly, then results can be filtered and sorted by utilizing the same index. While in the case of a normalized table, since the data would be spread out in different tables, this would not be possible.

Disadvantages:

1.It usually speeds retrieval but can slow updates

2.It is always application-specific and needs to be re-evaluated if the application changes

3.Cost of disk space will be more as we are keeping duplicate records

4.In some instances, denormalization simplifies coding; in others, it makes it more complex.

5.Data anomalies,as It allows duplicate data,so at any modification of data, it should modification of every piece of it's duplicate data which led to large computation and complex report.

Q2.

First let's see what is materialized view :

materialized view are schema objects, it storing the results of a query in a separate schema object(i.e., take up storage space and contain datas). This indicates the materialized view is returning a physically separate copy of the table data.

materialized view is good when you want to aggregate data and get this summary information from large tables frequently and quickly.This thing can be also achieved by denormalization where deonormalize some of your tables and maintain the aggregates via code or repeatedly scan large sets of rows.If you keep the results in a separate tables, you complicate your application code,you will be in charge of making sure that the manually aggregated data is in synch with the original table's data.

An example would be if you need to answer the question "how many employees are in departements ( x, y, z )" frequently. You could have a table of DEPT's and EMP's and join them and count. OR -- you could store in the DEPT table a count of the number of employees in that department -- an EMP_COUNT column -- and every time you added/removed an employee detail record, you would have to maintain this column. Here materialized view can be used for such an operation.

Denormalization TYPICALLY involves "pre-joining" frequently joined data to avoid having to do that at runtime. This typically results in redudant data they either the system (via materialized views) or you must remember to maintain in addition to the raw detail data.

Add a comment
Know the answer?
Add Answer to:
** use your own words, don't copy and paste, don't use handwriting, please. i need your...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • ** use your own words, don't copy and paste, don't use handwriting, please. i need your...

    ** use your own words, don't copy and paste, don't use handwriting, please. i need your references URL Link please** ** use your own words, don't copy and paste, don't use handwriting, please. i need your references URL Link please** Q: Find out a food technical regulation and standards for any selected food items in Kingdom of Saudi Arabia (example- pickled fruits, pickled cucumber). Discuss the health effects about the food additives used on them   // i need more details and...

  • use your own words, don't copy and paste, don't use handwriting, please. i need references please...

    use your own words, don't copy and paste, don't use handwriting, please. i need references please Discuss the applications of Binary Logistic Regression in Clinical Research using the case study given in the(Application of Binary Logistic Regression in Clinical Research) in a brief manner with a maximum length of two pages use your own words, don't copy and paste, don't use handwriting, please. i need references please use your own words, don't copy and paste, don't use handwriting, please. i...

  • use your own words, don't copy and paste, don't use handwriting, please. i need your references...

    use your own words, don't copy and paste, don't use handwriting, please. i need your references URL Link please** You are the Health Administrator of a Local Health Department in your area; your newly elected country board chairman has ordered you to come up with a new Health Related Initiatives that will improve the health of your community residents. Design a brochure in PDF format to educating people about any topic stated below. Ill effects of Smoking Importance of Physical...

  • ** use your own words, don't copy and paste, don't use handwriting, please. i need your...

    ** use your own words, don't copy and paste, don't use handwriting, please. i need your references URL Link please** Woods International is concerned with providing low cost grocery items to primarily underdeveloped and developing nations that can not afford products at a low cost. It is adopting a new computer system that will enable representatives managers from across the world to place orders directly. In order to ensure accurate and complete orders to each of its client, what types...

  • use your own words, don't copy and paste, don't use handwriting, please. i need references please...

    use your own words, don't copy and paste, don't use handwriting, please. i need references please * Select an environmental health problem, in Saudi community. Outline of Environmental health report (1-2 pages) 1 The environmental health problem 1.1 What is the problem ? 1 point 1.2 Where is that problem? I point 1.3 When the problem happened? 1 point 2 Causes of the environmental health problem 2 points 3 Health effects of the problem Use references , 2 points 4...

  • Please, i need Unique answer, Use your own words (don't copy and paste). *Please, don't use...

    Please, i need Unique answer, Use your own words (don't copy and paste). *Please, don't use handwriting. * i need References URL Link Critically appraise the following cross-sectional study given in the link below: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5989365/ Discuss the strength and limitations of the study in a brief manner with a maximum length of two pages

  • Please, i need Unique answer, Use your own words (don't copy and paste). *Please, don't use...

    Please, i need Unique answer, Use your own words (don't copy and paste). *Please, don't use handwriting. * i need References URL Link Critically appraise the following cross-sectional study given in the link below: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5989365/ Discuss the strength and limitations of the study in a brief manner with a maximum length of two pages

  • lease, i need Unique answer, Use your own words (don't copy and paste). *Please, don't use...

    lease, i need Unique answer, Use your own words (don't copy and paste). *Please, don't use handwriting. * i need References URL Link How would you explain this U-Shaped graph of mental health data and how can you justify the complexities of the relationship between our health and our life course Please, i need Unique answer, Use your own words (don't copy and paste). *Please, don't use handwriting. Please, i need Unique answer, Use your own words (don't copy and...

  • Please, i need Unique answer, Use your own words (don't copy and paste). *Please, don't use...

    Please, i need Unique answer, Use your own words (don't copy and paste). *Please, don't use handwriting. * i need References URL Link 1. Describe the similarities and differences between hepatitis B and hepatitis C. 2. What are the most common blood-borne infections that concern occupational health specialists?

  • Please, i need Unique answer, Use your own words (don't copy and paste). *Please, don't use...

    Please, i need Unique answer, Use your own words (don't copy and paste). *Please, don't use handwriting. * i need References URL Link Q) 'Person’s attitude has a major role in influencing their behavior and learning'. Do you agree with the above statement? Justify your answer with one example based on your study on theoretical background to health behavior

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT