From e8b460ff1678bfaf4516833d31333228610544b2 Mon Sep 17 00:00:00 2001 From: Xang Thao Date: Tue, 4 Sep 2018 12:38:04 -0700 Subject: [PATCH 1/6] Initial commit --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a6d7c7c..88996cc 100644 --- a/README.md +++ b/README.md @@ -135,3 +135,4 @@ Write queries that: Submit a file `notes.sql` with the queries that build (`CREATE TABLE`/`INSERT`) and query the database as noted above. +** Initial commit \ No newline at end of file From 796e5de4271f278abfd56c22a2a01a4146ef1fe5 Mon Sep 17 00:00:00 2001 From: Xang Thao Date: Tue, 4 Sep 2018 14:33:27 -0700 Subject: [PATCH 2/6] Outputted album and artist table to music_tabls.sql --- music_tables.sql | 5 +++++ mydatabase.db | Bin 0 -> 16384 bytes 2 files changed, 5 insertions(+) create mode 100644 music_tables.sql create mode 100644 mydatabase.db diff --git a/music_tables.sql b/music_tables.sql new file mode 100644 index 0000000..51fb744 --- /dev/null +++ b/music_tables.sql @@ -0,0 +1,5 @@ +PRAGMA foreign_keys=OFF; +BEGIN TRANSACTION; +CREATE TABLE album (id integer primary key autoincrement, title varchar(128) not null, release_year integer); +CREATE TABLE aritist ( id integer primary key autoincrement, name varchar(128) not null); +COMMIT; diff --git a/mydatabase.db b/mydatabase.db new file mode 100644 index 0000000000000000000000000000000000000000..437f66cd350d7ba6600df35692b68e368492bbaf GIT binary patch literal 16384 zcmeI#Jx{_w7{KwC5=l%Hw+<}N*ajTb#l=K4Y!1G#IFSQSz1SAHUQKZ0Gx?qT93BV* zBpPP&zvTMl-g13@?eaX_-596kd2Dm#0hg@0l#IR4&0 z@EfATub}zaOnjgrfB*srAbRcDDBZbPfd?-75RW>;}Jx`?= zJ1MFxOK)p?al0KpF77NRnJ=0LrJhu}80n2+wDt}gi^=?sjz5{sqOcLiaX8bzd1S*X zSMx`0?fha&lI;?3#$|tG&=IS>R;dS5Z?@7%=e4;n`e_ItfB*srAb Date: Tue, 4 Sep 2018 16:04:41 -0700 Subject: [PATCH 3/6] Selected all album and outputed in all_albums.txt --- all_albums.txt | 17 +++++++++++++++++ mydatabase.db | Bin 16384 -> 24576 bytes 2 files changed, 17 insertions(+) create mode 100644 all_albums.txt diff --git a/all_albums.txt b/all_albums.txt new file mode 100644 index 0000000..15b8780 --- /dev/null +++ b/all_albums.txt @@ -0,0 +1,17 @@ +id title release_year +---------- ------------------- ------------ +1 Super Awesome Album 1990 +2 Super Funky Album +3 Super Disco Album 1978 +4 Super Hairband Albu 1984 +5 Super Dubstep Album +6 Super Awesome Album 1990 +7 Super Funky Album +8 Super Disco Album 1978 +9 Super Hairband Albu 1984 +10 Super Dubstep Album +11 Super Awesome Album 1990 +12 Super Funky Album +13 Super Disco Album 1978 +14 Super Hairband Albu 1984 +15 Super Dubstep Album diff --git a/mydatabase.db b/mydatabase.db index 437f66cd350d7ba6600df35692b68e368492bbaf..1ce95ab88f0288e3ab0cec3a74c4022865b7fb75 100644 GIT binary patch literal 24576 zcmeI3Pl)4G9LHahmvq~iUfK_0!7mM>6F=rHvO+YCJi|F5WLIvM+-9vLPw4DI9<{l1)#)yI?E8}KJW5Ra zI$^J~n)88u-C0wGqaOr700ck)1V8`;KmY_l00jPT1SXbMaM#wf$;H?|>I*-LgJIn9 z`$wab`EzUc<@U~Dn;-5xyWi&XN^N=(9P=QIc_c20NQ7N6oJQ4x{i1Hxefz zj5l~3#C^eE^P}!%KdLpFPu6)jhS}Pn&Gd0m`14F4UCuB{e<&*ENOy ziK3+Xi@N2muWPTQ>4sPOa?#uwiYucO>f)ubP{5yJYe|j`IkG-6v<#}q9wD9FWT!8T zPv_{qK#hcalZK)*mhaPShU&JQVdh*T><+ulZm}Ee8WZdVw#7U~oIB2K=azFr%4i?} z0w4eaAOHd&00JNY0w4eaAn=a}xQvn(IT)SFUkmm|N5fd0@||QATyZGb(lgi(hX0`+z?h#lijJYfF20zhj@XGj@}`EiceO00ck) z1V8`;KmY_l00ck)1V8`;?kj;M%OHG_sfaaG!;S$SBcwam(@N^6>xhg4d_tUgG|Q`1`R+Uv7owrTYNrT7G`o>z)nw7Q}c zH)&OR{S`S|v?~4n3b9G6((tbk8?-D<|E(F;^lO0ZIa)?J@%`s0O{1LH{&SRuQI@{{ znUZ}%klk%lFH6^dp3>6G()ORHH1%@g{GaBTzgt81r15{dn7s_MZxW_2gD0*3`O>B* zo&Wh#%ah*!e5vV4|9`&JNY?+$?0v$1XFs!_*bnSm_9gp5dI3I_Zh#M^fCd5}00JNY z0w4eaAOHd&00JNY0wC}&5HObwO*5#ulpGARBoDeyi-uOz={cjQ>9ipCrfFqiW)?=X NFe44q(=aUw`vcEYV&nh- delta 156 zcmZoTz}V2hI6+#FiGhKE1&CpQX`+s?FcX9BGcI1B5HsIq2L3934Zh8r4Fw$eOp2M= z#igYg8*NJxlX6lMi!w_xi%Xysi*t~xV~DFlh@+E_s{&L|K|^8k3VyZ8y!_vp7z8#8 QDxBq?I6;>UWHwGN0E{{%;{X5v From 6223a655dd9f9496945be9a592f9467693a8418b Mon Sep 17 00:00:00 2001 From: Xang Thao Date: Tue, 4 Sep 2018 18:00:46 -0700 Subject: [PATCH 4/6] Selected all album between 1975 and 1990 in album_year_between_1975_1990.txt file --- album_year_between_1975_1990.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 album_year_between_1975_1990.txt diff --git a/album_year_between_1975_1990.txt b/album_year_between_1975_1990.txt new file mode 100644 index 0000000..81a7f49 --- /dev/null +++ b/album_year_between_1975_1990.txt @@ -0,0 +1,11 @@ +id title release_year +---------- ------------------- ------------ +1 Super Awesome Album 1990 +3 Super Disco Album 1978 +4 Super Hairband Albu 1984 +6 Super Awesome Album 1990 +8 Super Disco Album 1978 +9 Super Hairband Albu 1984 +11 Super Awesome Album 1990 +13 Super Disco Album 1978 +14 Super Hairband Albu 1984 From b8d14ff66408c8c521e37e13508622da81e7d376 Mon Sep 17 00:00:00 2001 From: Xang Thao Date: Tue, 4 Sep 2018 18:16:50 -0700 Subject: [PATCH 5/6] Added album where release year is null and album where title start with Super D txt file --- albums_where_release_year_null.txt | 8 ++++++++ albums_where_title_start_with_Super_D.txt | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 albums_where_release_year_null.txt create mode 100644 albums_where_title_start_with_Super_D.txt diff --git a/albums_where_release_year_null.txt b/albums_where_release_year_null.txt new file mode 100644 index 0000000..d35087c --- /dev/null +++ b/albums_where_release_year_null.txt @@ -0,0 +1,8 @@ +id title release_year +---------- ----------------- ------------ +2 Super Funky Album +5 Super Dubstep Alb +7 Super Funky Album +10 Super Dubstep Alb +12 Super Funky Album +15 Super Dubstep Alb diff --git a/albums_where_title_start_with_Super_D.txt b/albums_where_title_start_with_Super_D.txt new file mode 100644 index 0000000..28db1d4 --- /dev/null +++ b/albums_where_title_start_with_Super_D.txt @@ -0,0 +1,8 @@ +id title release_year +---------- ----------------- ------------ +3 Super Disco Album 1978 +5 Super Dubstep Alb +8 Super Disco Album 1978 +10 Super Dubstep Alb +13 Super Disco Album 1978 +15 Super Dubstep Alb From ffeb32e03c93efe73a70c6fa36ff18084820533b Mon Sep 17 00:00:00 2001 From: Xang Thao Date: Tue, 4 Sep 2018 19:58:08 -0700 Subject: [PATCH 6/6] Selected all track titles from super funky album --- titles_from_super_funky_album.txt | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 titles_from_super_funky_album.txt diff --git a/titles_from_super_funky_album.txt b/titles_from_super_funky_album.txt new file mode 100644 index 0000000..bc0614e --- /dev/null +++ b/titles_from_super_funky_album.txt @@ -0,0 +1,6 @@ +title +------------------- +Super Funky Track 1 +Super Funky Track 2 +Super Funky Track 3 +Super Funky Track 4