CREATE TABLE S(SNO CHAR(5) PRIMARY KEY,
SNAME CHAR(10),
STATUS SMALLINT,
CITY CHAR(10))
CREATE TABLE P(PNO CHAR(5) PRIMARY KEY,
PNAME CHAR(10),
COLOR CHAR (5),
WEIGHT INT)
CREATE TABLE J(JNO CHAR(5) PRIMARY KEY,
JNAME CHAR(10),
CITY CHAR(10))
CREATE TABLE SPJ(
SNO CHAR(5) FOREIGN KEY REFERENCES S(SNO),
PNO CHAR(5) FOREIGN KEY REFERENCES P(PNO),
JNP CHAR(5) FOREIGN KEY REFERENCES J(JNO),
QTY INT
);