Exercise 4: Query Types
Using the relation:
create table Courses (
id integer primary key,
code char(8),
title text,
year integer,
convenor integer references Staff(id),
constraint once_per_year unique (code,year)
);
|
give examples of each of the following query types:
- a 1-d one query, an n-d one query
- a 1-d pmr query, an n-d pmr query
- a 1-d range query, an n-d range query
Suggest how many solutions each might produce ...
|