Solution: Unnormalized Scheme: Pletscher@inf - Ethz.ch
Solution: Unnormalized Scheme: Pletscher@inf - Ethz.ch
CourseAssignment
SQL (Student-ID,Name) Course Room Building Lecturer
{(1,Bernd),(2,Birte),(3,Björn)} P G1 HPH LD
{(2,Birte),(4,Karin),(5,Jo)} ET E1 HPH WK
Patrick Pletscher {(2,Birte),(4,Karin)} RT H44 ML LG
[email protected]
Performance
• Generally better to use a join, as it’s faster!
• A cascade of joins is called a “nested join”. Good to use the join
first, that reduces the number of rows the most.
Example UPDATE
Christiano Ronaldo leaves Manchester for Chelsea: