Extending the Relational Algebra




CS157a

Chris Pollett

Oct 28, 2019

Outline

Introduction

Relational Operations on Bags

Set operations on Bags

Projection and Selection on Bags

Products and Joins on Bags

Quiz

Which of the following is true?

  1. Our relational mapping algorithm did not map many many relationships to new relations.
  2. A weak entity set has some of its key attributes in a supporting entity set.
  3. Associations in UML are the same concept as entity sets in the E/R model.

Extended Operators of Relational Algebra

Duplicate Elimination and Aggregation operators

Grouping

Extending the Projection Operator

The Sorting Operator and Outer Joins