answersLogoWhite

0


Best Answer

The result of the natural join is the set of all combinations of tuples in R and S that are equal on their common attribute names.

The result of the semijoin is only the set of all tuples in R for which there is a tuple in S that is equal on their common attribute names.

The point is that natural join is a set of all combinations and semijoin is only the tuples from the first relation not a combination between the two.

For example:

R1 R2

A B B C

1 2 2 3

1 3 3 4

1 4 5 3

R1 (natural join) R2 =

A B C

1 2 3

1 3 4

whereas R1(semijoin) R2 =

A B

1 2

1 3

So in a way semijoin selects and returns a table of only the tuples from R1 that have an equal attribute with R2

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is difference between natural join and semi join?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between two pitches called?

a semi tone a semi tone


Difference between arid and semi arid climate?

The meaning of semi arid and arid is the same


What is the difference between a classical and a semi acoustic guitar?

The sound.


What is the difference between a semi auto and a revolver?

Method of operation.


What is the difference between semi-permanent eyelashes and permanent eyelash extensions?

The main difference between semi-permanent and permanent eyelash extensions is the length of time they will last. Semi-permanent eyelashes will not last as long as permanent eyelash extensions.


What is the difference between Permanent and semi-permanent fasteners?

semi permanent are used to help aid whilst you sew.


What is the difference between semi-urban areas and rural areas?

The difference between semi-urban areas and rural areas is the development of the geographic area and environment. A semi-urban area is between urban and rural, or partly urban. Rural areas are located outside towns and cities.


Is there a difference between european and american Semi Truck Rims?

yes


What is the difference between flush and semi-flush mounted ceiling lights?

The difference between flush and semi-flush mounted ceiling lights is that one of them can be mounted on the ceiling and the other one can be mounted elsewhere.


Difference between block and semi block letter?

A semi-block letter is less formal than a block letter.


Difference between semi auto pistol and dual action?

Semi-auto requires the hammer to be cocked for the first shot.


Difference between semi variable costs and semi fixed costs?

a semi fixed cost moves upward in a step where semi variable cost begining at a given base level