Slide 6
Slide 6 text
Product: R1
! R2
users !
currencies =
(name, “Tom Stuart”)
(twitter, “@tomstuart”)
(email, “tom@experthuman.com”)
(code, “GBP”)
(symbol, “£”)
(name, “John Doe”)
(twitter, “@johndoe”)
(email, “john@example.com”)
(code, “GBP”)
(symbol, “£”)
(name, “Tom Stuart”)
(twitter, “@tomstuart”)
(email, “tom@experthuman.com”)
(code, “USD”)
(symbol, “$”)
(name, “John Doe”)
(twitter, “@johndoe”)
(email, “john@example.com”)
(code, “USD”)
(symbol, “$”)
Rename: ρa/b(R) a and b are attribute names
Union: R1 ∪ R2
Difference: R1 - R2
Then there's the product operation, which gives you every combination of records from one
relation with records from another. So if you have two users and two currencies, you get four
records in the product. And there's also rename, union and difference operations, which I
don't have time to go into now.