P. 1
Chap16-The Relational Data Model and Relational Database Constraints

Chap16-The Relational Data Model and Relational Database Constraints

|Views: 369|Likes:
Published by nomaddarcy

More info:

Published by: nomaddarcy on May 27, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PPT, PDF, TXT or read online from Scribd
See more
See less

05/09/2014

pdf

text

original

SQL-99: Schema
Definition, Basic
Constraints, and Queries

Slide 16-21

Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

SQL Data Definition and Data
Types

Schema and Catalog Concepts in SQL
The CREATE TABLE Command in SQL
Attribute Data Types and Domains in SQL

Slide 16-22

Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

Specifying Basic Constraints
in SQL

Specifying Attribute Constraints and
Attribute Defaults
Specifying Key and Referential Integrity
Constraints
Giving Names to Constraints
Specifying Constraints on Tuples Using
CHECK

Slide 16-23

Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

Schema Change Statements
in SQL

The DROP Command
The ALTER Command

Slide 16-24

Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

Basic Queries in SQL

The SELECT-FROM-WHERE Structure of Basic
SQL Queries
Ambiguous Attribute Names, Aliasing, and Tuple
Variables
Unspecified WHERE Clause and Use of the
Asterisk
Tables as Sets in SQL
Substring Pattern Matching and Arithmetic
Operators
Ordering of Query Results

Slide 16-25

Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

More Complex SQL Queries

Comparisons Involving NULL and Three-Valued
Logic
Nested Queries, Tuples, and Set/Multiset
Comparisions
Correlated Nested Queries
The EXISTS and UNIQUE Functions in SQL
Explicit Sets and Renaming of Attributes in SQL
Joined Tables in SQL
Aggregate Functions in SQL
Grouping: The GROUP BY and HAVING Clauses
Discussion and Summary of SQL Queries

Slide 16-26

Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

Insert, Delete, and Update
Statements in SQL

The INSERT Command
The DELETE Command
The UPDATE Command

Slide 16-27

Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

Additional Features of SQL

Slide 16-28

Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

Summary

Copyright © 2004 Pearson Education, Inc.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->