More SQL DDL




CS157a

Chris Pollett

Dec 3, 2018

Outline

Introduction

Virtual Views

Querying Views

Renaming View Attributes

Quiz

Which of the following is true?

  1. SQL SELECT FROM WHERE operations are by default computed as sets.
  2. SQL set operations are by default computed as sets.
  3. SQL assertions are used to modify additional database tables when an event occurs.

Modifying Views

Updatable View Conditions

Example Updatable View

Instead-of Triggers on Views

Indexes in SQL

SQL Index Syntax

Materialized Views