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", "Lady Gaga", "320.0");
INSERT INTO "song" VALUES ("1", "Hello", "1", "35000000.0", "1.0");
INSERT INTO "song" VALUES ("2", "Shape of You", "2", "41000000.0", "1.0");
INSERT INTO "song" VALUES ("3", "Blank Space", "3", "12000000.0", "1.0");
INSERT INTO "song" VALUES ("4", "Single Ladies", "4", "7000000.0", "1.0");
INSERT INTO "song" VALUES ("5", "Sorry", "5", "10000000.0", "1.0");
INSERT INTO "song" VALUES ("6", "Umbrella", "6", "6000000.0", "1.0");
INSERT INTO "song" VALUES ("7", "Hotline Bling", "7", "5000000.0", "2.0");
INSERT INTO "song" VALUES ("8", "Thank U, Next", "8", "8000000.0", "1.0");
INSERT INTO "song" VALUES ("9", "Uptown Funk", "9", "20000000.0", "1.0");
INSERT INTO "song" VALUES ("10", "Bad Romance", "10", "12000000.0", "2.0");
INSERT INTO "song" VALUES ("11", "Someone Like You", "1", "20000000.0", "1.0");
INSERT INTO "song" VALUES ("12", "Thinking Out Loud", "2", "18000000.0", "2.0");
INSERT INTO "song" VALUES ("13", "Shake It Off", "3", "10000000.0", "1.0");
INSERT INTO "song" VALUES ("14", "Halo", "4", "5000000.0", "5.0");
INSERT INTO "song" VALUES ("15", "Love Yourself", "5", "14000000.0", "1.0");
INSERT INTO "song" VALUES ("16", "Diamonds", "6", "7000000.0", "1.0");
INSERT INTO "song" VALUES ("17", "God's Plan", "7", "11000000.0", "1.0");
INSERT INTO "song" VALUES ("18", "7 Rings", "8", "9000000.0", "1.0");
INSERT INTO "song" VALUES ("19", "Just the Way You Are", "9", "15000000.0", "1.0");
INSERT INTO "song" VALUES ("20", "Poker Face", "10", "14000000.0", "1.0");
INSERT INTO "song" VALUES ("21", "Rolling in the Deep", "1", "25000000.0", "1.0");
INSERT INTO "song" VALUES ("22", "Castle on the Hill", "2", "500000.0", "6.0");
INSERT INTO "song" VALUES ("23", "Look What You Made Me Do", "3", "200000.0", "1.0");
INSERT INTO "song" VALUES ("24", "Formation", "4", "150000.0", "10.0");
INSERT INTO "song" VALUES ("25", "What Do You Mean?", "5", "250000.0", "1.0");
INSERT INTO "song" VALUES ("26", "Work", "6", "300000.0", "1.0");
INSERT INTO "song" VALUES ("27", "One Dance", "7", "290000.0", "1.0");
INSERT INTO "song" VALUES ("28", "Side to Side", "8", "280000.0", "4.0");
INSERT INTO "song" VALUES ("29", "Grenade", "9", "270000.0", "1.0");
INSERT INTO "song" VALUES ("30", "Shallow", "10", "260000.0", "1.0");