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,
"Birth_Year" 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", "1988.0");
INSERT INTO "singer" VALUES ("2", "Ed Sheeran", "1991.0");
INSERT INTO "singer" VALUES ("3", "Taylor Swift", "1989.0");
INSERT INTO "singer" VALUES ("4", "Beyoncé", "1981.0");
INSERT INTO "singer" VALUES ("5", "Justin Bieber", "1994.0");
INSERT INTO "singer" VALUES ("6", "Rihanna", "1988.0");
INSERT INTO "singer" VALUES ("7", "Drake", "1986.0");
INSERT INTO "singer" VALUES ("8", "Ariana Grande", "1993.0");
INSERT INTO "singer" VALUES ("9", "Bruno Mars", "1985.0");
INSERT INTO "singer" VALUES ("10", "Katy Perry", "1984.0");
INSERT INTO "song" VALUES ("1", "Hello", "1", "30000000.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", "8000000.0", "1.0");
INSERT INTO "song" VALUES ("7", "Hotline Bling", "7", "6000000.0", "2.0");
INSERT INTO "song" VALUES ("8", "Thank U, Next", "8", "9000000.0", "1.0");
INSERT INTO "song" VALUES ("9", "Uptown Funk", "9", "20000000.0", "1.0");
INSERT INTO "song" VALUES ("10", "Roar", "10", "10000000.0", "1.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", "8000000.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", "8000000.0", "1.0");
INSERT INTO "song" VALUES ("19", "Grenade", "9", "9000000.0", "1.0");
INSERT INTO "song" VALUES ("20", "Firework", "10", "9000000.0", "1.0");