More Relational Algebra




CS157a

Chris Pollett

Sep 11, 2023

Outline

Introduction

Set Operations on Relations

The three most common operations on sets are union, intersection, and difference. For relations, we will use the following notations and definitions for their meaning:

Quiz

Which of the following is true?

  1. To specify a data model you just need to give the structures used to represent the data.
  2. All records in a semi-structured data model schema have the same length.
  3. The ALTER TABLE command can be used to add a column to a table in SQL.

Projection

Selection

Cartesian Product

Natural Joins

Theta Joins

Combining Operations to Form Queries

Naming and Renaming