




















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Relational Algebra, SQL, Duplicate Rows, Multiset Semantics, Bag Operations, Bag Union, Bag Intersection, Bag Difference, Laws for Bags, Extended Relational Algebra, Duplicate-elimination Operator, Sorting, Extended Projection, Arithmetic, Aggregation, Grouping, Group By in SQL, Semantics, Null Values, Entity Integrity Constraint, Full Outer Join, Outer Joins, Views, Querying Views
Typology: Slides
1 / 28
This page cannot be seen from the preview
Don't miss anything!





















Lecture 12: Further relational algebra, further SQL
www.cl.cam.ac.uk/Teaching/current/Databases/
Add features needed for SQL
A B 1 2 3 4 1 2
A B 1 2 3 4
A B 1 2 3 4
A+B A.1 A. 3 1 1 7 3 3
SELECT [DISTINCT] target-list FROM relation-list WHERE qualification GROUP BY grouping-list ;
rating,AVG(age)(Sailors)
19
bar beer price Anchor 6X 2. Mill 6X 2. Anchor Adnam‟s 2. Mill Fosters 2. Eagle Fosters 2. beer price 6X 2. Adnam‟s 2. Fosters 2.