640 likes | 758 Views
R3( A, R1.B, R2.B, C ) 1 2 5 6 1 2 7 8 1 2 9 10 3 4 5 6 3 4 7 8 3 4 9 10. Example: R3 := R1 × R2. R1( A, B ) 1 2 3 4 R2( B, C ) 5 6 7 8 9 10. name. addr. name. manf. Bars. Beers. Sells. Bars sell some beers. license. Drinkers like some beers.
E N D
R3( A, R1.B, R2.B, C ) 1 2 5 6 1 2 7 8 1 2 9 10 3 4 5 6 3 4 7 8 3 4 9 10 Example: R3 := R1 × R2 R1( A, B ) 1 2 3 4 R2( B, C ) 5 6 7 8 9 10
name addr name manf Bars Beers Sells Bars sell some beers. license Drinkers like some beers. Frequents Likes Note: license = beer, full, none Drinkers frequent some bars. Drinkers name addr The schema as an ER-diagram
to output check for Joe check these are equal drinker bar drinker beer tv1 tv2 Sally Bud Sally Joe’s Likes Frequents