Skip to content

Commit

Permalink
(docs.sql.release) more queries
Browse files Browse the repository at this point in the history
  • Loading branch information
snake-biscuits committed Jun 23, 2024
1 parent 34ed9d6 commit 54a76e9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/generate/sql/release.query.sql
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,18 @@ FROM (
GROUP BY branch_name
) AS X
ORDER BY X.release_day ASC


-- count number of releases each month
SELECT SUBSTRING(R.day, 1, 7), COUNT(*)
FROM Release AS R
GROUP BY SUBSTRING(R.day, 1, 7)


-- view selection of releases for a given month
SELECT R.day, G.name, P.name
FROM Release AS R
INNER JOIN Game AS G ON R.game == G.rowid
INNER JOIN Platform AS P ON R.platform == P.rowid
WHERE SUBSTRING(R.day, 1, 7) == '2023-08'
ORDER BY R.day ASC

0 comments on commit 54a76e9

Please sign in to comment.