From b521858d20a90ac1a748156c3604bde5ebd1e632 Mon Sep 17 00:00:00 2001 From: Brandon Hopper Date: Tue, 4 Sep 2018 18:02:39 -0400 Subject: [PATCH 1/2] wrote queries for note.sql --- mydatabase.db | Bin 0 -> 24576 bytes note.sql | 12 ++++++++++++ 2 files changed, 12 insertions(+) create mode 100644 mydatabase.db create mode 100644 note.sql diff --git a/mydatabase.db b/mydatabase.db new file mode 100644 index 0000000000000000000000000000000000000000..82962450207bc3746fccbed8559231a5836755bf GIT binary patch literal 24576 zcmeI4O>7%Q6vt=w%eCX(aSCDAwh&XPkz%C+*-jb|m%7QeiEy0axJWr!n|Kk%j-A?T zRk<}4NO0iBjRQiexN_mtQzUMvNFWYKe4Ky-a6_sJH{R~r)u!4piMUkgjbwXv{`2A z)bsKmJt`VN21-r<#-jjfFuL~Yu& z#-*UA*Y>(Df1^@gU9Z#^ilvteytdWgwVTyy*um-Uj`o|88`kY>cHOS6+S`1hr3x^U zx6S!^dejNV=nTB}&}#;Iw62{Paa0Kh9!Vn__tDiv!q0T~`hUuF21MgwM#dIJ5YDvS zIwh?kpiC7G<%F5d(xc7D9Ktk8452eW)Sk01c&4es4M{T>7wJxrd3dV}+vMiZy)|-s zd+rmL@`m&V#! zd$`vh3-{-A5XN`AHtKZ_L%~dolFUp=k`g6J#wR%^N|Kn8L=z=Zp)Z9CjIAb4-N+`irK409=&yjmS~ z+{evpgMPc^^?UAcCK-)C7ayOP60b$$)%bX2O1vD6m*V58INsm?TRQmve`Q~?&)A3T zkTsdj7TK)v$oR?l!uZs9-{=}!M#-4d|I&ZdkM(={dk}yH2_OL^fCP{L5e0=}%~Op&&v=AIL2Wi>Y^(n@OXS&>#$^Uo;cmGM{}TkgZb ztSI^OLh-VapB0MBN**l!g4-@Bd9e8l#IlkHpT9sXDS7bv3&f&g`Huey*5DTc;XKN+ z1(yFfr6gNm_>WVHvIUO+i4y*-AiUd>WcjB5ah|ABmMn1n$0;Sr0?&V(Qk1e_`d>+g zi=lGc9rod$2*!&c3&#I=X(oIt50sc?2cladPO N1W78Xa3+wX>OW;~uF(Jh literal 0 HcmV?d00001 diff --git a/note.sql b/note.sql new file mode 100644 index 0000000..08bdc7a --- /dev/null +++ b/note.sql @@ -0,0 +1,12 @@ +INSERT INTO author (name) VALUES ('Brandon Hopper'); +INSERT INTO author (name) VALUES ('Dj Hopper'); +INSERT INTO author (name) VALUES ('Bailey Hopper'); + +INSERT INTO note (content, author_id) VALUES ('This is a note with some content to it', 2); +INSERT INTO note (content, author_id) VALUES ('This is note is new and it is with some new content to it', 2); + +INSERT INTO note (content, author_id) VALUES ('This is some note with some content to it', 3); + +INSERT INTO note (content, author_id) VALUES ('This is one note with some content to it', 1); +INSERT INTO note (content, author_id) VALUES ('This is a new note with some content to it', 1); +INSERT INTO note (content, author_id) VALUES ('This is a another note with some content to it', 1); \ No newline at end of file From e381377c51afe165f1dada374761e6b4e74fef2c Mon Sep 17 00:00:00 2001 From: Brandon Hopper Date: Tue, 4 Sep 2018 18:57:35 -0400 Subject: [PATCH 2/2] -dayone completed --- day1.sql | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 day1.sql diff --git a/day1.sql b/day1.sql new file mode 100644 index 0000000..81e26b6 --- /dev/null +++ b/day1.sql @@ -0,0 +1,18 @@ +REATE TABLE album ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + title VARCHAR(128) NOT NULL, + release_year INTEGER +); + CREATE TABLE artist ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + name VARCHAR(128) NOT NULL +); + CREATE TABLE track ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + title VARCHAR(128) NOT NULL, + album_id INT REFERENCES album(id) +); + CREATE TABLE artist_album ( + artist_id INT REFERENCES artist(id), + album_id INT REFERENCES album(id) +); \ No newline at end of file