Intermediate SQL
Intermediate SQL
Intermediate SQL
Join Expressions
Views
Transactions
Integrity Constraints
SQL Data Types and Schemas
Authorization
Joined Relations
Relation prereq
Observe that
prereq information is missing for CS-315 and
course information is missing for CS-437
Outer Join
not null
primary key
unique
check (P), where P is a predicate
Not Null and Unique Constraints
not null
Declare name and budget to be not null
name varchar(20) not null
budget numeric(12,2) not null
unique ( A1, A2, …, Am)
The unique specification states that the
attributes A1, A2, … Am
form a candidate key.
Candidate keys are permitted to be null (in
contrast to primary keys).
The check clause
check (P)
where P is a predicate
Taylor
Figure 4.06
Figure 4.03