File size: 2,094 Bytes
cdc1cad | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | CREATE TABLE "artist" (
"artist_id" integer,
"name" text,
"country" text,
"year_join" integer,
"age" integer
);
INSERT INTO artist VALUES (1, "vijay singh", "fiji", 1998, 45);
INSERT INTO artist VALUES (2, "john daly", "united states", 1991, 46);
INSERT INTO artist VALUES (3, "paul azinger", "united states", 1993, 47);
INSERT INTO artist VALUES (4, "jeff sluman", "united states", 1988, 57);
INSERT INTO artist VALUES (5, "mark brooks", "united states", 1996, 48);
INSERT INTO artist VALUES (6, "nick price", "zimbabwe", 1994, 48);
INSERT INTO artist VALUES (7, "larry nelson", "united states", 1981, 50);
CREATE TABLE "exhibition" (
"exhibition_id" integer,
"year" integer,
"theme" text,
"artist_id" integer,
"ticket_price" real
);
INSERT INTO exhibition VALUES (1, 2004, "santa claus", 1, 19.95);
INSERT INTO exhibition VALUES (2, 2005, "christmas stocking", 2, 19.95);
INSERT INTO exhibition VALUES (3, 2006, "santa claus and rudolph the red-nosed reindeer", 4, 14.95);
INSERT INTO exhibition VALUES (4, 2007, "christmas tree", 1, 16.95);
INSERT INTO exhibition VALUES (5, 2008, "spring", 6, 29.95);
INSERT INTO exhibition VALUES (6, 2009, "summer", 3, 9.95);
CREATE TABLE "exhibition_record" (
"exhibition_id" integer,
"date" text,
"attendance" integer
);
INSERT INTO exhibition_record VALUES (1, "december 2", 965);
INSERT INTO exhibition_record VALUES (1, "december 5", 1098);
INSERT INTO exhibition_record VALUES (1, "december 7", 2983);
INSERT INTO exhibition_record VALUES (2, "december 12", 1239);
INSERT INTO exhibition_record VALUES (2, "december 13", 1313);
INSERT INTO exhibition_record VALUES (2, "december 9", 10908);
INSERT INTO exhibition_record VALUES (3, "december 16", 1134);
INSERT INTO exhibition_record VALUES (3, "february 19", 1233);
INSERT INTO exhibition_record VALUES (3, "february 21", 9089);
INSERT INTO exhibition_record VALUES (4, "february 23", 3139);
INSERT INTO exhibition_record VALUES (5, "february 25", 24808);
INSERT INTO exhibition_record VALUES (5, "february 26", 13142);
INSERT INTO exhibition_record VALUES (5, "february 28", 4231);
COMMIT;
|