File size: 2,469 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 "people" (
"people_id" integer,
"name" text,
"country" text,
"is_male" text,
"age" integer
);
INSERT INTO people VALUES (1, "mike weir", "canada", "t", 34);
INSERT INTO people VALUES (2, "juli hanson", "sweden", "f", 32);
INSERT INTO people VALUES (3, "ricky barnes", "united states", "t", 30);
INSERT INTO people VALUES (4, "summer duval", "united states", "f", 30);
INSERT INTO people VALUES (5, "todd hamilton", "united states", "t", 27);
INSERT INTO people VALUES (6, "annie mediate", "united states", "f", 26);
INSERT INTO people VALUES (7, "lucas glover", "united states", "t", 31);
INSERT INTO people VALUES (8, "joe ohair", "united states", "f", 31);
INSERT INTO people VALUES (9, "graeme mcdowell", "northern ireland", "t", 34);
INSERT INTO people VALUES (10, "jamie mickelson", "united states", "f", 36);
INSERT INTO people VALUES (11, "adam scott", "australia", "t", 26);
INSERT INTO people VALUES (12, "danny toms", "united states", "f", 25);
CREATE TABLE "church" (
"church_id" integer,
"name" text,
"organized_by" text,
"open_date" integer,
"continuation_of" text
);
INSERT INTO church VALUES (1, "pure church of christ", "wycam clark", 1831, "church of christ");
INSERT INTO church VALUES (2, "independent church", "– hoton", 1832, "church of christ");
INSERT INTO church VALUES (3, "church of christ", "ezra booth", 1836, "church of the latter day saints");
INSERT INTO church VALUES (4, "church of christ parrishite", "warren parrish", 1837, "church of the latter day saints");
INSERT INTO church VALUES (5, "alston church", "isaac russell", 1839, "church of jesus christ of latter day saints");
INSERT INTO church VALUES (6, "church of christ", "william chubby", 1830, "church of jesus christ of latter day saints");
INSERT INTO church VALUES (7, "church of jesus christ the bride the lambs wife", "george m. hinkle", 1840, "church of jesus christ of latter day saints");
INSERT INTO church VALUES (8, "church of christ", "hiram page", 1842, "church of jesus christ of latter day saints");
INSERT INTO church VALUES (9, "true church of jesus christ of latter day saints", "william law", 1844, "church of jesus christ of latter day saints");
CREATE TABLE "wedding" (
"church_id" integer,
"male_id" integer,
"female_id" integer,
"year" integer
);
INSERT INTO wedding VALUES (1, 1, 2, 2014);
INSERT INTO wedding VALUES (3, 3, 4, 2015);
INSERT INTO wedding VALUES (4, 7, 8, 2016);
INSERT INTO wedding VALUES (5, 5, 6, 2016);
COMMIT;
|