Compare commits

...

10 Commits

Author SHA1 Message Date
daviddoji
2bed71011a automated commit by submit50 2026-04-13 17:01:18 +02:00
daviddoji
acf4a487b5 automated commit by check50 [check50=True] 2026-04-13 17:00:26 +02:00
daviddoji
7aac197f90 automated commit by check50 [check50=True] 2026-04-13 16:58:21 +02:00
daviddoji
853d01ba45 automated commit by check50 [check50=True] 2026-04-13 16:55:22 +02:00
daviddoji
59b0c5d5aa automated commit by check50 [check50=True] 2026-04-13 16:53:53 +02:00
daviddoji
b1c6f98a21 automated commit by check50 [check50=True] 2026-04-13 16:50:54 +02:00
daviddoji
3e908d6fb8 automated commit by check50 [check50=True] 2026-04-13 16:49:58 +02:00
daviddoji
eaf34ef62e automated commit by check50 [check50=True] 2026-04-13 16:46:49 +02:00
daviddoji
88de49ca26 automated commit by check50 [check50=True] 2026-04-13 16:42:31 +02:00
daviddoji
b885c2bc01 automated commit by check50 [check50=True] 2026-04-13 16:37:27 +02:00
8 changed files with 25 additions and 0 deletions

5
10.sql
View File

@@ -0,0 +1,5 @@
-- write a SQL query to answer a question of your choice about the prints. The query should:
-- Make use of AS to rename a column
-- Involve at least one condition, using WHERE
-- Sort by at least one column, using ORDER BY
SELECT ROUND(AVG("brightness"), 2) AS "Hiroshige Average Brightness" FROM "views" WHERE "artist" = "Hiroshige";

3
3.sql
View File

@@ -0,0 +1,3 @@
-- write a SQL query to count how many prints by Hokusai include “Fuji” in the English title.
-- Though all of Hokusais prints focused on Mt. Fuji, in how many did “Fuji” make it into the title?
SELECT COUNT(*) FROM "views" WHERE "artist" = "Hokusai" AND "english_title" LIKE "%Fuji%";

3
4.sql
View File

@@ -0,0 +1,3 @@
-- write a SQL query to count how many prints by Hiroshige have English titles that refer to the “Eastern Capital”.
-- Hiroshiges prints were created in Japans “Edo period,” referencing the eastern capital city of Edo, now Tokyo.
SELECT COUNT(*) FROM "views" WHERE "artist" = "Hiroshige" AND "english_title" LIKE "%Eastern%Capital%";

3
5.sql
View File

@@ -0,0 +1,3 @@
-- write a SQL query to find the highest contrast value of prints by Hokusai. Name the column “Maximum Contrast”.
-- Does Hokusais prints most contrasting print actually have much contrast?
SELECT MAX("contrast") AS "Maximum Contrast" FROM "views";

3
6.sql
View File

@@ -0,0 +1,3 @@
-- write a SQL query to find the average entropy of prints by Hiroshige, rounded to two decimal places.
-- Call the resulting column “Hiroshige Average Entropy”.
SELECT ROUND(AVG("entropy"), 2) AS "Hiroshige Average Entropy" FROM "views" WHERE "artist" = "Hiroshige";

3
7.sql
View File

@@ -0,0 +1,3 @@
-- write a SQL query to list the English titles of the 5 brightest prints by Hiroshige, from most to least bright.
-- Compare them to this list on Wikipedia to see if your results match the prints aesthetics.
SELECT "english_title" FROM "views" WHERE "artist" = "Hiroshige" ORDER BY "brightness" DESC LIMIT 5;

3
8.sql
View File

@@ -0,0 +1,3 @@
-- write a SQL query to list the English titles of the 5 prints with the least contrast by Hokusai, from least to highest contrast.
-- Compare them to this list on Wikipedia to see if your results match the prints aesthetics.
SELECT "english_title" FROM "views" WHERE "artist" = "Hokusai" ORDER BY "contrast" ASC LIMIT 5;

2
9.sql
View File

@@ -0,0 +1,2 @@
-- write a SQL query to find the English title and artist of the print with the highest brightness.
SELECT "english_title", "artist" FROM "views" ORDER BY "brightness" DESC LIMIT 1;