pgimply - drop table if exists S; create table S ( SNO...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: drop table if exists S; create table S ( SNO char(2) not null, SNAME varchar(10) not null, STATUS integer not null, CITY varchar(10) ); insert into S values('S1', 'Smith', 20, 'London'); insert into S values('S2', 'Jones', 10, 'Paris'); insert into S values('S3', 'Blake', 30, 'Paris'); insert into S values('S4', 'Clark', 20, 'London'); insert into S values('S5', 'Adams', 30, 'Athens'); drop table if exists P; create table P ( PNO char(2) not null, PNAME varchar(10) not null, COLOR varchar(10) not null, WEIGHT numeric(3,1) not null, CITY varchar(10) ); insert into P values('P1', 'Nut', 'Red', 12.0, 'London'); insert into P values('P2', 'Bolt', 'Green', 17.0, 'Paris'); insert into P values('P3', 'Screw', 'Blue', 17.0, 'Oslo'); insert into P values('P4', 'Screw', 'Red', 14.0, 'London'); insert into P values('P5', 'Cam', 'Blue', 12.0, 'Paris'); insert into P values('P6', 'Cog', 'Red', 19.0, 'London'); drop table if exists SP; create table SP ( SNO char(2) not null, PNO char(2) not null, QTY integer not null ); insert into SP values('S1', 'P1', 300); insert into SP values('S1', 'P2', 200); insert into SP values('S1', 'P3', 400); insert into SP values('S1', 'P4', 200); insert into SP values('S1', 'P5', 100); insert into SP values('S1', 'P6', 100); insert into SP values('S2', 'P1', 300); insert into SP values('S2', 'P2', 400); insert into SP values('S3', 'P2', 200); insert into SP values('S4', 'P2', 200); insert into SP values('S4', 'P4', 300); insert into SP values('S4', 'P5', 400); drop table if exists ATTORNEY; create table ATTORNEY (...
View Full Document

This note was uploaded on 06/20/2011 for the course CSC CSC5921 taught by Professor Albert during the Spring '11 term at University of Colorado Denver.

Page1 / 4

pgimply - drop table if exists S; create table S ( SNO...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online