Compare commits

..

10 Commits

Author SHA1 Message Date
daviddoji
5eb6ad1fbc automated commit by submit50 2026-04-13 13:28:43 +00:00
daviddoji
2946a3d113 automated commit by check50 [check50=True] 2026-04-13 13:27:23 +00:00
daviddoji
3bcd48f745 automated commit by check50 [check50=True] 2026-04-13 13:22:54 +00:00
daviddoji
e61ef8e793 automated commit by check50 [check50=True] 2026-04-13 13:20:16 +00:00
daviddoji
85f8234017 automated commit by check50 [check50=True] 2026-04-13 13:19:26 +00:00
daviddoji
0ed1e13e4a automated commit by check50 [check50=True] 2026-04-13 13:15:52 +00:00
daviddoji
609c58b7b3 automated commit by check50 [check50=True] 2026-04-13 13:12:26 +00:00
daviddoji
cded6648a5 automated commit by check50 [check50=True] 2026-04-13 13:10:22 +00:00
daviddoji
92fc5d8305 automated commit by check50 [check50=True] 2026-04-13 13:05:33 +00:00
daviddoji
e520e00101 automated commit by check50 [check50=True] 2026-04-13 12:55:57 +00:00
8 changed files with 17 additions and 1 deletions

2
10.sql
View File

@@ -0,0 +1,2 @@
-- write a SQL query to list the ids, titles, and production codes of all episodes. Order the results by production code, from earliest to latest.
SELECT "id", "title", "production_code" FROM "episodes" ORDER BY "production_code" ASC;

2
11.sql
View File

@@ -0,0 +1,2 @@
-- list the titles of episodes from season 5, in reverse alphabetical order.
SELECT "title" FROM "episodes" WHERE "season" = 5 ORDER BY "title" DESC;

2
12.sql
View File

@@ -0,0 +1,2 @@
-- count the number of unique episode titles.
SELECT COUNT(DISTINCT "title") FROM "episodes";

3
13.sql
View File

@@ -0,0 +1,3 @@
-- write a SQL query to explore a question of your choice. This query should:
-- Involve at least one condition, using WHERE with AND or OR
SELECT "title" FROM "episodes" WHERE "season" = 1 AND "topic" LIKE "%and%"

2
6.sql
View File

@@ -1,2 +1,2 @@
-- list the titles of episodes from season 6 (2008) that were released early, in 2007.
SELECT "title", "air_date" FROM "episodes" WHERE "season" = 6 AND "air_date" LIKE "2007%";
SELECT "title" FROM "episodes" WHERE "season" = 6 AND "air_date" LIKE "2007%";

2
7.sql
View File

@@ -0,0 +1,2 @@
-- write a SQL query to list the titles and topics of all episodes teaching fractions.
SELECT "title", "topic" FROM "episodes" WHERE "topic" LIKE "%Fractions%";

3
8.sql
View File

@@ -0,0 +1,3 @@
-- write a query that counts the number of episodes released in the last 6 years, from 2018 to 2023, inclusive.
-- You might find it helpful to know you can use BETWEEN with dates, such as BETWEEN '2000-01-01' AND '2000-12-31'.
SELECT COUNT("title") FROM "episodes" WHERE "air_date" BETWEEN "2018-01-01" AND "2023-12-31";

2
9.sql
View File

@@ -0,0 +1,2 @@
-- write a query that counts the number of episodes released in Cyberchases first 6 years, from 2002 to 2007, inclusive.
SELECT COUNT("title") FROM "episodes" WHERE "air_date" BETWEEN "2002-01-01" AND "2007-12-31";