Supplier-and-parts database

The following schema appears in Chris Date's book An introduction to Database Systems. There are three relvars in the schema, used to represent suppliers, parts and shipments. It is a conventional normalised relational database schema.

S (suppliers)

Predicate: There exists a supplier identified by supplier number [S#] with name [SNAME] having status [STATUS] and located in city [CITY]

S#SNAMESTATUSCITY
S1Smith20London
S2Jones10Paris
S3Blake30Paris
S4Clark20London
S5Adams30Athens

P (parts)

Predicate: There exists a kind of part identified by part number [P#] with name [PNAME] having colour [COLOR], weight [WEIGHT] and which are stored in city [CITY].

P#PNAMECOLORWEIGHTCITY
P1NutRed12.0London
P2BoltGreen17.0Paris
P3ScrewBlue17.0Oslo
P4ScrewRed14.0London
P5CamBlue12.0Paris
P6CogRed19.0London

SP (shipments)

Predicate: There exists a supplier identified by supplier number [S#] that ships quantity [QTY] of a part identified by part number [P#].

S#P#QTY
S1P1300
S1P2200
S1P3400
S1P4200
S1P5100
S1P6100
S2P1300
S2P2400
S3P2200
S4P2200
S4P4300
S4P5400