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 "singer" (
"Singer_ID" INT UNIQUE,
"Name" TEXT,
"Net_Worth_Millions" FLOAT,
PRIMARY KEY ("Singer_ID")
);

CREATE TABLE "song" (
"Song_ID" INT,
"Title" TEXT,
"Singer_ID" INT,
"Sales" FLOAT,
"Highest_Position" FLOAT,
PRIMARY KEY ("Song_ID"),
FOREIGN KEY ("Singer_ID") REFERENCES "singer"("Singer_ID")
);





INSERT INTO "singer" VALUES ("1", "Adele", "220.0");
INSERT INTO "singer" VALUES ("2", "Ed Sheeran", "200.0");
INSERT INTO "singer" VALUES ("3", "Taylor Swift", "400.0");
INSERT INTO "singer" VALUES ("4", "Beyonce", "500.0");
INSERT INTO "singer" VALUES ("5", "Justin Bieber", "285.0");
INSERT INTO "singer" VALUES ("6", "Rihanna", "1400.0");
INSERT INTO "singer" VALUES ("7", "Drake", "250.0");
INSERT INTO "singer" VALUES ("8", "Ariana Grande", "240.0");
INSERT INTO "singer" VALUES ("9", "Bruno Mars", "175.0");
INSERT INTO "singer" VALUES ("10", "Katy Perry", "330.0");
INSERT INTO "song" VALUES ("1", "Hello", "1", "30.8", "1.0");
INSERT INTO "song" VALUES ("2", "Rolling in the Deep", "1", "20.6", "1.0");
INSERT INTO "song" VALUES ("3", "Someone Like You", "1", "17.0", "1.0");
INSERT INTO "song" VALUES ("4", "Shape of You", "2", "41.5", "1.0");
INSERT INTO "song" VALUES ("5", "Thinking Out Loud", "2", "18.0", "2.0");
INSERT INTO "song" VALUES ("6", "Bad Habits", "2", "10.0", "1.0");
INSERT INTO "song" VALUES ("7", "Blank Space", "3", "12.0", "1.0");
INSERT INTO "song" VALUES ("8", "Shake It Off", "3", "10.0", "1.0");
INSERT INTO "song" VALUES ("9", "Love Story", "3", "8.0", "4.0");
INSERT INTO "song" VALUES ("10", "Single Ladies", "4", "7.0", "1.0");
INSERT INTO "song" VALUES ("11", "Halo", "4", "5.0", "5.0");
INSERT INTO "song" VALUES ("12", "Sorry", "5", "10.0", "1.0");
INSERT INTO "song" VALUES ("13", "What Do You Mean?", "5", "8.0", "1.0");
INSERT INTO "song" VALUES ("14", "Umbrella", "6", "6.0", "1.0");
INSERT INTO "song" VALUES ("15", "Work", "6", "5.0", "1.0");
INSERT INTO "song" VALUES ("16", "Hotline Bling", "7", "6.0", "2.0");
INSERT INTO "song" VALUES ("17", "God's Plan", "7", "11.0", "1.0");
INSERT INTO "song" VALUES ("18", "Thank U, Next", "8", "8.0", "1.0");
INSERT INTO "song" VALUES ("19", "7 Rings", "8", "7.0", "1.0");
INSERT INTO "song" VALUES ("20", "Uptown Funk", "9", "15.0", "1.0");
INSERT INTO "song" VALUES ("21", "Roar", "10", "11.0", "1.0");
INSERT INTO "song" VALUES ("22", "Firework", "10", "9.0", "1.0");
INSERT INTO "song" VALUES ("23", "Set Fire to the Rain", "1", "15.0", "1.0");
INSERT INTO "song" VALUES ("24", "Perfect", "2", "25.0", "1.0");
INSERT INTO "song" VALUES ("25", "All Too Well", "3", "5.0", "1.0");
INSERT INTO "song" VALUES ("26", "Crazy in Love", "4", "4.0", "1.0");
INSERT INTO "song" VALUES ("27", "Despacito Remix", "5", "13.0", "1.0");
INSERT INTO "song" VALUES ("28", "Diamonds", "6", "7.0", "1.0");
INSERT INTO "song" VALUES ("29", "One Dance", "7", "10.0", "1.0");
INSERT INTO "song" VALUES ("30", "Side to Side", "8", "6.0", "4.0");
INSERT INTO "song" VALUES ("31", "Grenade", "9", "8.0", "1.0");
INSERT INTO "song" VALUES ("32", "Dark Horse", "10", "10.0", "1.0");