Finish High Level Models, Algebraic and Logical Query Languages




CS157a

Chris Pollett

Oct 23, 2023

Outline

Introduction

Object Definition Language

Classes and Attributes in ODL

Relationships in ODL

Types, Subclasses, and Keys in ODL

Quiz

Which of the following is true?

  1. Degree constraints can be indicated in UML diagrams but not in E/R Diagrams.
  2. To map a one-to-one relationship `R` between entity sets `T` and `S` in an E/R model to the relations in the relational model, choose one of the relations that `T` and `S` map to, say `R_S`, and include in `R_S` a foreign key reference to the primary key of `R_T`.
  3. To draw a relationship with an attribute in an E/R model in a UML model you could use just an ordinary association.

Algebraic and Logical Query Languages

Relational Operations on Bags

Set operations on Bags

Projection and Selection on Bags

Products and Joins on Bags

Extended Operators of Relational Algebra

Duplicate Elimination and Aggregation operators

Grouping

Extending the Projection Operator

The Sorting Operator and Outer Joins