diff --git a/project0/small.sql b/project0/small.sql index 6b7d80c022185ea5ebd1c2baccdc2f38ea282c36..4e49d7b7e2eadcff70d927793dc129d28535e343 100644 --- a/project0/small.sql +++ b/project0/small.sql @@ -1,8 +1,8 @@ -drop table flewon; -drop table flights; -drop table customers; -drop table airlines; -drop table airports; +drop table if exists flewon; +drop table if exists flights; +drop table if exists customers; +drop table if exists airlines; +drop table if exists airports; create table airports (airportid char(3) primary key, city char(20), name char(100), total2011 int, total2012 int); insert into airports(name, city, airportid, total2011, total2012) values('Metropolitan Oakland International','Oakland','OAK',10040864,9266570); diff --git a/project1/small.sql b/project1/small.sql index 6b7d80c022185ea5ebd1c2baccdc2f38ea282c36..4e49d7b7e2eadcff70d927793dc129d28535e343 100644 --- a/project1/small.sql +++ b/project1/small.sql @@ -1,8 +1,8 @@ -drop table flewon; -drop table flights; -drop table customers; -drop table airlines; -drop table airports; +drop table if exists flewon; +drop table if exists flights; +drop table if exists customers; +drop table if exists airlines; +drop table if exists airports; create table airports (airportid char(3) primary key, city char(20), name char(100), total2011 int, total2012 int); insert into airports(name, city, airportid, total2011, total2012) values('Metropolitan Oakland International','Oakland','OAK',10040864,9266570);