Right Outer Join course natural right outer join prereg course id title dept name credits prereq id BI0-301 Genetics Biology 4 BIO-101 CS-190 Game Design Comp.Sci. 4 CS-101 CS-347 null null null CS-101 Database System Concepts-6th Edition 4.7 ©Silberschat乜,Korth and Sudarshan
Database System Concepts - 6 4.7 ©Silberschatz, Korth and Sudarshan th Edition Right Outer Join course natural right outer join prereq
Joined Relations Join operations take two relations and return as a result another relation. These additional operations are typically used as subquery expressions in the from clause Join condition-defines which tuples in the two relations match,and what attributes are present in the result of the join. Join type-defines how tuples in each relation that do not match any tuple in the other relation(based on the join condition)are treated. Join types Join Conditions inner join natural left outer join on <predicate> right outer join using (A1,A1,...,An) full outer join Database System Concepts-6th Edition 4.8 ©Silberschat乜,Korth and Sudarshan
Database System Concepts - 6 4.8 ©Silberschatz, Korth and Sudarshan th Edition Joined Relations Join operations take two relations and return as a result another relation. These additional operations are typically used as subquery expressions in the from clause Join condition – defines which tuples in the two relations match, and what attributes are present in the result of the join. Join type – defines how tuples in each relation that do not match any tuple in the other relation (based on the join condition) are treated
Full Outer Join course natural full outer join prereg course_id title dept name credits prereq id BI○-301 Genetics Biology 4 BIO-101 CS-190 Game Design Comp.Sci. 4 CS-101 CS-315 Robotics Comp.Sci. 3 null CS-347 null null null CS-101 Database System Concepts-6th Edition 4.9 ©Silberschat乜,Korth and Sudarshan
Database System Concepts - 6 4.9 ©Silberschatz, Korth and Sudarshan th Edition Full Outer Join course natural full outer join prereq
Joined Relations-Examples course inner join prereg on course.course id prereg.course id course id title dept name credits prereq id course_id BIO-301 Genetics Biology 4 BIO-101 BI○-301 CS-190 Game Design Comp.Sci. 4 CS-101 CS-190 What is the difference between the above,and a natural join? course left outer join prereg on course.course_id prereg.course id course id title dept name credits prereq id course id BIO-301 Genetics Biology 4 BIO-101 BIO-301 CS-190 Game Design Comp.Sci. 4 CS-101 CS-190 CS-315 Robotics Comp.Sci. 3 null null Database System Concepts-6th Edition 4.10 ©Silberschat乜,Korth and Sudarshan
Database System Concepts - 6 4.10 ©Silberschatz, Korth and Sudarshan th Edition Joined Relations – Examples course inner join prereq on course.course_id = prereq.course_id What is the difference between the above, and a natural join? course left outer join prereq on course.course_id = prereq.course_id
Joined Relations-Examples course natural right outer join prereg course id title dept name credits prereq id BIO-301 Genetics Biology 4 BIO-101 CS-190 Game Design Comp.Sci. 4 CS-101 CS-347 null null null CS-101 course full outer join prereg using (course_id) course id title dept name credits prereq id BIO-301 Genetics Biology 4 BI○-101 CS-190 Game Design Comp.Sci. 4 CS-101 CS-315 Robotics Comp.Sci. 3 null CS-347 null null null CS-101 Database System Concepts-6th Edition 4.11 ©Silberschat乜,Korth and Sudarshan
Database System Concepts - 6 4.11 ©Silberschatz, Korth and Sudarshan th Edition Joined Relations – Examples course natural right outer join prereq course full outer join prereq using (course_id)