Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How does relationships between tables in a database reduce data redundancy?

0
Posted

How does relationships between tables in a database reduce data redundancy?

0

“Data redundancy occurs in database systems which have a field that is repeated in two or more tables. For instance, in case when customer data is duplicated and attached with each product bought then redundancy of data is a known source of inconsistency, since customer might appear with different values for given attribute.[1] Data redundancy leads to data anomalies and corruption and generally should be avoided by design.[2] Database normalization prevents redundancy and makes the best possible usage of storage.[3] Proper use of foreign keys can minimize data redundancy and chance of destructive anomalies.[2] However sometimes concerns of efficiency and convenience can result redundant data design despite the risk of corrupting the data.[4]” That was taken from wikipedia In the case outlined above you have a customer table and an order table, instead of duplicating the customers data into the order table, you would (in this case) create a foreign key such as a field called “customeri

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123