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 "orchestra" (
"Orchestra_ID" INT,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID")
);

CREATE TABLE "performance" (
"Performance_ID" INT,
"Type" TEXT,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID")
);

CREATE TABLE "show" (
"Attendance" FLOAT
);





INSERT INTO "orchestra" VALUES ("1", "Vinyl");
INSERT INTO "orchestra" VALUES ("2", "CD");
INSERT INTO "orchestra" VALUES ("3", "Digital");
INSERT INTO "orchestra" VALUES ("4", "Cassette");
INSERT INTO "orchestra" VALUES ("5", "Streaming");
INSERT INTO "performance" VALUES ("1", "Live final", "1", "15.5");
INSERT INTO "performance" VALUES ("2", "Preliminary", "2", "10.0");
INSERT INTO "performance" VALUES ("3", "Semi-final", "3", "12.3");
INSERT INTO "performance" VALUES ("4", "Live final", "4", "20.0");
INSERT INTO "performance" VALUES ("5", "Quarter-final", "5", "8.7");
INSERT INTO "performance" VALUES ("6", "Preliminary", "6", "9.9");
INSERT INTO "performance" VALUES ("7", "Semi-final", "7", "11.1");
INSERT INTO "performance" VALUES ("8", "Quarter-final", "8", "7.5");
INSERT INTO "performance" VALUES ("9", "Preliminary", "9", "10.5");
INSERT INTO "performance" VALUES ("10", "Live final", "10", "18.0");
INSERT INTO "show" VALUES ("1500.0");
INSERT INTO "show" VALUES ("2300.5");
INSERT INTO "show" VALUES ("1800.0");
INSERT INTO "show" VALUES ("2100.0");
INSERT INTO "show" VALUES ("1950.0");