From 52c9d11032e91d0d9352a1f418402f63231956ab Mon Sep 17 00:00:00 2001 From: Case 2 <35837580+case-2@users.noreply.github.com> Date: Wed, 10 May 2023 12:04:50 +0530 Subject: [PATCH 1/9] solved problem no. 1, 2, and 3 --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index d1621e2..fb9d428 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,8 @@ This table should be called `songs` and have four properties with these exact na After successfully creating the table copy the code from [data.sql](data.sql) into MySQL Workbench, and run it to populate all of the data for the rest of the exercises. If you do not encounter any errors, then your answer is most likely correct. +solved. + ### 2. Select only the Names of all the Bands [Solution](solutions/2.sql) @@ -37,6 +39,8 @@ Change the name of the column the data returns to `Band Name` | Van Canto | | Dream Theater | +solved + ### 3. Select the Oldest Album [Solution](solutions/3.sql) @@ -46,6 +50,8 @@ Make sure to only return one result from this query, and that you are not return |----|------------------------|--------------|---------| | 5 | ...And Justice for All | 1988 | 2 | +solved + ### 4. Get all Bands that have Albums [Solution](solutions/4.sql) From fe590e3af6f4c5b190c448df40b79cc2d8720738 Mon Sep 17 00:00:00 2001 From: Case 2 <35837580+case-2@users.noreply.github.com> Date: Wed, 10 May 2023 12:36:29 +0530 Subject: [PATCH 2/9] solved problem --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index fb9d428..cbd5cf9 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,8 @@ Return the band name as `Band Name`. | Death | | Van Canto | +solved + ### 5. Get all Bands that have No Albums [Solution](solutions/5.sql) From 5d12a4d3edfe918c0b3600ec67494ed877af0982 Mon Sep 17 00:00:00 2001 From: Case 2 <35837580+case-2@users.noreply.github.com> Date: Sun, 28 May 2023 23:06:38 +0530 Subject: [PATCH 3/9] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index cbd5cf9..68472ee 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,8 @@ Return the band name as `Band Name`. |---------------| | Dream Theater | +solved + ### 6. Get the Longest Album [Solution](solutions/6.sql) From 172d4ee751258da43b8ca3594d9e4a2759724dd3 Mon Sep 17 00:00:00 2001 From: Case 2 <35837580+case-2@users.noreply.github.com> Date: Tue, 30 May 2023 21:41:03 +0530 Subject: [PATCH 4/9] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 68472ee..224de46 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,8 @@ Return the album name as `Name`, the album release year as `Release Year`, and t |----------------|--------------|-------------------| | Death Magnetic | 2008 | 74.76666593551636 | +solved + ### 7. Update the Release Year of the Album with no Release Year [Solution](solutions/7.sql) From 0f67fb745b93bcf6ca1a57ba382a399bb63c1fbf Mon Sep 17 00:00:00 2001 From: Case 2 <35837580+case-2@users.noreply.github.com> Date: Tue, 30 May 2023 21:42:23 +0530 Subject: [PATCH 5/9] Update README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 224de46..f258212 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ This table should be called `songs` and have four properties with these exact na After successfully creating the table copy the code from [data.sql](data.sql) into MySQL Workbench, and run it to populate all of the data for the rest of the exercises. If you do not encounter any errors, then your answer is most likely correct. -solved. +studied ### 2. Select only the Names of all the Bands [Solution](solutions/2.sql) @@ -39,7 +39,7 @@ Change the name of the column the data returns to `Band Name` | Van Canto | | Dream Theater | -solved +studied ### 3. Select the Oldest Album [Solution](solutions/3.sql) @@ -50,7 +50,7 @@ Make sure to only return one result from this query, and that you are not return |----|------------------------|--------------|---------| | 5 | ...And Justice for All | 1988 | 2 | -solved +studied ### 4. Get all Bands that have Albums [Solution](solutions/4.sql) @@ -68,7 +68,7 @@ Return the band name as `Band Name`. | Death | | Van Canto | -solved +studied ### 5. Get all Bands that have No Albums [Solution](solutions/5.sql) @@ -81,7 +81,7 @@ Return the band name as `Band Name`. |---------------| | Dream Theater | -solved +studied ### 6. Get the Longest Album [Solution](solutions/6.sql) @@ -94,7 +94,7 @@ Return the album name as `Name`, the album release year as `Release Year`, and t |----------------|--------------|-------------------| | Death Magnetic | 2008 | 74.76666593551636 | -solved +studied ### 7. Update the Release Year of the Album with no Release Year [Solution](solutions/7.sql) From 12377ea690c4ea4c0068326ede7613cb881a9c5d Mon Sep 17 00:00:00 2001 From: Case 2 <35837580+case-2@users.noreply.github.com> Date: Tue, 30 May 2023 22:03:58 +0530 Subject: [PATCH 6/9] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index f258212..4450a31 100644 --- a/README.md +++ b/README.md @@ -103,11 +103,15 @@ Set the release year to 1986. You may run into an error if you try to update the release year by using `release_year IS NULL` in the WHERE statement of your UPDATE. This is because MySQL Workbench by default will not let you update a table that has a primary key without using the primary key in the UPDATE statement. This is a good thing since you almost never want to update rows without using the primary key, so to get around this error make sure to use the primary key of the row you want to update in the WHERE of the UPDATE statement. +studied + ### 8. Insert a record for your favorite Band and one of their Albums [Solution](solutions/8.sql) If you performed this correctly you should be able to now see that band and album in your tables. +studied + ### 9. Delete the Band and Album you added in #8 [Solution](solutions/9.sql) From 1cbc7565986490a1686a0681506de5b4639aeb23 Mon Sep 17 00:00:00 2001 From: Case 2 <35837580+case-2@users.noreply.github.com> Date: Tue, 30 May 2023 22:11:00 +0530 Subject: [PATCH 7/9] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 4450a31..7233ff1 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,8 @@ studied The order of how you delete the records is important since album has a foreign key to band. +studied + ### 10. Get the Average Length of all Songs [Solution](solutions/10.sql) From 5a8fbc43cdb2d09d4e51d92e42d13a71fa25aa7a Mon Sep 17 00:00:00 2001 From: Case 2 <35837580+case-2@users.noreply.github.com> Date: Tue, 30 May 2023 22:27:42 +0530 Subject: [PATCH 8/9] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 7233ff1..b9ad387 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,7 @@ Return the average length as `Average Song Duration`. |-----------------------| | 5.352472513259112 | +studied ### 11. Select the longest Song off each Album [Solution](solutions/11.sql) @@ -155,6 +156,8 @@ Return the album name as `Album`, the album release year as `Release Year`, and | Break the Silence | 2011 | 6.15 | | Tribe of Force | 2010 | 8.38333 | +studied + ### 12. Get the number of Songs for each Band [Solution](solutions/12.sql) From 30d84a0be70f2353cb7479383bd657a881de1edd Mon Sep 17 00:00:00 2001 From: Case 2 <35837580+case-2@users.noreply.github.com> Date: Tue, 30 May 2023 22:41:47 +0530 Subject: [PATCH 9/9] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index b9ad387..195485f 100644 --- a/README.md +++ b/README.md @@ -173,3 +173,5 @@ Return the band name as `Band`, the number of songs as `Number of Songs`. | Within Temptation | 30 | | Death | 27 | | Van Canto | 32 | + +studied