diff --git a/squeal/database.db b/squeal/database.db new file mode 100644 index 0000000..a9993a4 Binary files /dev/null and b/squeal/database.db differ diff --git a/squeal/squeal.sh b/squeal/squeal.sh new file mode 100755 index 0000000..9ecc7f9 --- /dev/null +++ b/squeal/squeal.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# Script that accepts the name of an artist and checks if they are currently in our Billboard Top 10 database + +while true; do + printf "Enter an artist's name: " + read input + + sqlite3 database.db "SELECT * FROM singles WHERE artist = '$input'" +done + diff --git a/squeal/tables.sql b/squeal/tables.sql new file mode 100644 index 0000000..2874977 --- /dev/null +++ b/squeal/tables.sql @@ -0,0 +1,25 @@ +CREATE TABLE singles ( + rank INT NOT NULL, + title VARCHAR(255) NOT NULL, + artist VARCHAR(255) NOT NULL, + + PRIMARY KEY (rank) +); + +INSERT INTO singles (rank, title, artist) VALUES (1, 'Die With A Smile', 'Lady Gaga, Bruno Mars'); +INSERT INTO singles (rank, title, artist) VALUES (2, 'BIRDS OF A FEATHER', 'Billie Eilish'); +INSERT INTO singles (rank, title, artist) VALUES (3, 'Taste', 'Sabrina Carpenter'); +INSERT INTO singles (rank, title, artist) VALUES (4, 'Who', 'Jimin'); +INSERT INTO singles (rank, title, artist) VALUES (5, 'Espresso', 'Sabrina Carpenter'); +INSERT INTO singles (rank, title, artist) VALUES (6, 'The Emptiness Machine', 'Linkin Park'); +INSERT INTO singles (rank, title, artist) VALUES (7, 'Please Please Please', 'Sabrina Carpenter'); +INSERT INTO singles (rank, title, artist) VALUES (8, 'Si Antes Te Hubiera Conocido', 'KAROL G'); +INSERT INTO singles (rank, title, artist) VALUES (9, 'Good Luck, Babe!', 'Chappell Roan'); +INSERT INTO singles (rank, title, artist) VALUES (10,' Beautiful Things', 'Benson Boone'); + +CREATE TABLE flags ( + secret VARCHAR(255) NOT NULL, + PRIMARY KEY (secret) +); + +INSERT INTO flags (secret) VALUES ('1NJ3CT10N');