lklimkiewicz's picture
Add data
40b5d04 verified
raw
history blame
1.49 kB
PRAGMA foreign_keys = ON;
CREATE TABLE "entrepreneur" (
"Entrepreneur_ID" int,
"People_ID" int,
"Company" text,
"Money_Requested" real,
"Investor" text,
PRIMARY KEY ("Entrepreneur_ID"),
FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID")
);
CREATE TABLE "people" (
"People_ID" int,
"Name" text,
"Height" real,
"Weight" real,
"Date_of_Birth" text,
PRIMARY KEY ("People_ID")
);
INSERT INTO "people" VALUES (1,"Francesco Postiglione",1.9,80,"1972-04-29");
INSERT INTO "people" VALUES (2,"Leonardo Binchi",1.86,57,"1975-08-27");
INSERT INTO "people" VALUES (3,"Fabrizio Buonocore",1.83, 45, "1977-04-28");
INSERT INTO "people" VALUES (4,"Marco Gerini",1.72, 75,"1971-08-05");
INSERT INTO "people" VALUES (5,"Roberto Calcaterra",1.75, 67, "1972-02-06");
INSERT INTO "people" VALUES (6,"Goran Fiorentini",1.78, 89, "1981-11-21");
INSERT INTO "people" VALUES (7,"Alberto Angelini",1.82,58, "1974-09-28");
INSERT INTO "people" VALUES (8,"Maurizio Felugo",1.95,76, "1981-03-04");
INSERT INTO "entrepreneur" VALUES (1,1,"Umbrolly","150000","Duncan Bannatyne");
INSERT INTO "entrepreneur" VALUES (2,2,"Grails Ltd","120000","Doug Richard");
INSERT INTO "entrepreneur" VALUES (3,3,"Le Beanock","54000","Rachel Elnaugh");
INSERT INTO "entrepreneur" VALUES (4,5,"IV Cam","50000","Peter Jones");
INSERT INTO "entrepreneur" VALUES (5,6,"Mycorrhizal Systems","75000","Simon Woodroffe");
INSERT INTO "entrepreneur" VALUES (6,8,"Elizabeth Galton Ltd","110000","Duncan Bannatyne");