Question

In: Computer Science

What do you mean by Lossless-Join Decomposition, give an example of Lossless-Join decomposition of R =...

What do you mean by Lossless-Join Decomposition, give an example of Lossless-Join decomposition of R = (A, B, C) in R1= (A, B) and R2 = (B, C) by drawing tables?

NO HANDWRITING PLEASE

Solutions

Expert Solution

Lossless Join Decomposition:

The decomposition of a table or relation in DBMS is done to normalize the date if the table or relation is not following the rule of a normal form. We decompose the table into two or more tables if it preserves the dependency and lossless join.

By using a lossless join decomposition method we remove the redundancy from the database and the original data is preserved as it is.

If we can reconstruct a table from the decomposed tables using joins and join results in the same original table, then decomposition is lossless otherwise decomposition is lossy.

We can use three methods, to check the decomposition is lossless or lossy:

1. Matrix method

2. Binary method

3. Join method

R = (A, B, C) is decomposed into

R1= (A, B) and

R2 = (B, C)

R(A, B, C)

A B C
10 25 10
20 50 60
30 30 60

R1(A, B)

A B
10 25
20 50
30 30

R2(B, C)

B C
25 10
50 60
30 60

Now perform the natural join on subtable R1 and R2:

R(A, B, C)

A B C
10 25 10
20 50 60
30 30 60

This table is the same as the original table.

So, this is lossless join decomposition.


Related Solutions

what do capitalized and expensed mean? How do you determine which to use? give an example...
what do capitalized and expensed mean? How do you determine which to use? give an example of each. "Capitalized" & "Expensed"
Give an example of a confidence interval for the mean of a population when you do...
Give an example of a confidence interval for the mean of a population when you do not know the population standard deviation by describing the population, the variable, and how you would go about finding the interval. You may want to mention a sample size, a confidence level, and a possible interval.
What do you mean by pro-R and pro-S?
What do you mean by pro-R and pro-S?
2. What do we mean by the term substantive analytical procedures? Give an example of how...
2. What do we mean by the term substantive analytical procedures? Give an example of how an auditor would perform an analytical procedure for acquisitions? 3. What substantive analytical procedures might an auditor use to perform an analytical procedure for accounts payable?
What does it mean to declare a variable? Give an example.
C++ programming homeworkWhat does it mean to declare a variable? Give an example.What does it mean to assign a value to a variable? Give an example.What is the different between assigning and initializing? Give examples.
Cybercrime 1) What is Cybercrime? 2) Give an example of Cybercrime? 3) What do you do...
Cybercrime 1) What is Cybercrime? 2) Give an example of Cybercrime? 3) What do you do to protect yourself from Cybercrime? 4) What do you do if you come across an internet scam/crime? What do you do if you are a victim? or, You receive a scam e-mail. or, You come across a scam webpage. 5) Who do you report the crime too? Your internet provider? The organization that owns /operates the search engine? The local police? The FBI? (what...
Give an example of a mean that applies to two Populations for which you, as a...
Give an example of a mean that applies to two Populations for which you, as a Health Professional, would like to do a Hypothesis Test for. In your Hypothesis Test you will be testing the difference between these two Population means when the two samples are independent. Your discussion MUST include the two target Populations along with the Population characteristic that your mean is computed for, and the unit that is used when taking the sample measurements. As shown in...
What do you understand by the law of diminishing returns? Can you give example of when...
What do you understand by the law of diminishing returns? Can you give example of when diminishing returns have set at the place you work? If diminishing returns have a set in then in then what do you think is happening to the short run costs? Why?
what do you need to know about supervising UCP's ? Give an example of something you...
what do you need to know about supervising UCP's ? Give an example of something you would need to supervise a UCP for and explain what the CNO expects from you as the nurse doing the supervising for that example ?
under what circumstances would you choose to join a union? if you would not join a...
under what circumstances would you choose to join a union? if you would not join a union under any circumstances-- it is an acceptable position as long as you can support it. this is for Trends and Issues in Nursing.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT