PRAGMA foreign_keys = ON;

PRAGMA writable_schema = 1;
DELETE FROM sqlite_master WHERE type IN ("table", "index", "trigger");
PRAGMA writable_schema = 0;
VACUUM;

CREATE TABLE "people" (
"People_ID" INT UNIQUE,
"Nationality" TEXT,
"Height" FLOAT,
PRIMARY KEY ("People_ID")
);

CREATE TABLE "poker_player" (
"Poker_Player_ID" INT,
"People_ID" INT,
"Best_Finish" FLOAT,
"Earnings" FLOAT,
PRIMARY KEY ("Poker_Player_ID"),
FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID")
);





INSERT INTO "people" VALUES ("1", "USA", "198.5");
INSERT INTO "people" VALUES ("2", "Canada", "201.0");
INSERT INTO "people" VALUES ("3", "Brazil", "205.3");
INSERT INTO "people" VALUES ("4", "Germany", "199.9");
INSERT INTO "people" VALUES ("5", "Russia", "210.2");
INSERT INTO "people" VALUES ("6", "Japan", "180.0");
INSERT INTO "people" VALUES ("7", "Australia", "202.5");
INSERT INTO "people" VALUES ("8", "France", "200.0");
INSERT INTO "people" VALUES ("9", "UK", "215.7");
INSERT INTO "people" VALUES ("10", "India", "195.4");
INSERT INTO "poker_player" VALUES ("101", "1", "3.0", "150000.0");
INSERT INTO "poker_player" VALUES ("102", "2", "1.0", "300000.0");
INSERT INTO "poker_player" VALUES ("103", "3", "2.0", "450000.0");
INSERT INTO "poker_player" VALUES ("104", "4", "5.0", "120000.0");
INSERT INTO "poker_player" VALUES ("105", "5", "1.0", "600000.0");
INSERT INTO "poker_player" VALUES ("106", "6", "4.0", "90000.0");
INSERT INTO "poker_player" VALUES ("107", "7", "3.0", "350000.0");
INSERT INTO "poker_player" VALUES ("108", "8", "2.0", "200000.0");
INSERT INTO "poker_player" VALUES ("109", "9", "1.0", "700000.0");
INSERT INTO "poker_player" VALUES ("110", "10", "6.0", "110000.0");