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", "Beyoncé", "500.0");
INSERT INTO "singer" VALUES ("5", "Justin Bieber", "300.0");
INSERT INTO "singer" VALUES ("6", "Rihanna", "600.0");
INSERT INTO "singer" VALUES ("7", "Drake", "250.0");
INSERT INTO "singer" VALUES ("8", "Ariana Grande", "180.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", "30.0", "1.0");
INSERT INTO "song" VALUES ("2", "Someone Like You", "1", "25.0", "1.0");
INSERT INTO "song" VALUES ("3", "Shape of You", "2", "40.0", "1.0");
INSERT INTO "song" VALUES ("4", "Thinking Out Loud", "2", "35.0", "1.0");
INSERT INTO "song" VALUES ("5", "Blank Space", "3", "32.0", "1.0");
INSERT INTO "song" VALUES ("6", "Shake It Off", "3", "30.0", "1.0");
INSERT INTO "song" VALUES ("7", "Single Ladies", "4", "28.0", "1.0");
INSERT INTO "song" VALUES ("8", "Halo", "4", "26.0", "5.0");
INSERT INTO "song" VALUES ("9", "Sorry", "5", "29.0", "1.0");
INSERT INTO "song" VALUES ("10", "Love Yourself", "5", "27.0", "1.0");
INSERT INTO "song" VALUES ("11", "Umbrella", "6", "24.0", "1.0");
INSERT INTO "song" VALUES ("12", "Diamonds", "6", "23.0", "1.0");
INSERT INTO "song" VALUES ("13", "Hotline Bling", "7", "20.0", "2.0");
INSERT INTO "song" VALUES ("14", "God's Plan", "7", "22.0", "1.0");
INSERT INTO "song" VALUES ("15", "Thank U, Next", "8", "18.0", "1.0");
INSERT INTO "song" VALUES ("16", "7 Rings", "8", "19.0", "1.0");
INSERT INTO "song" VALUES ("17", "Uptown Funk", "9", "38.0", "1.0");
INSERT INTO "song" VALUES ("18", "Just the Way You Are", "9", "33.0", "1.0");
INSERT INTO "song" VALUES ("19", "Bad Romance", "10", "21.0", "2.0");
INSERT INTO "song" VALUES ("20", "Poker Face", "10", "20.0", "1.0");
INSERT INTO "song" VALUES ("21", "Set Fire to the Rain", "1", "15.0", "2.0");
INSERT INTO "song" VALUES ("22", "Castle on the Hill", "2", "17.0", "6.0");
INSERT INTO "song" VALUES ("23", "Lover", "3", "16.0", "10.0");
INSERT INTO "song" VALUES ("24", "Formation", "4", "14.0", "11.0");
INSERT INTO "song" VALUES ("25", "What Do You Mean?", "5", "13.0", "1.0");