Ask HN: Are there any websites for SQL puzzle games?
As a Python programmer, I often use Django or SQLAlchemy ORM and as a consequence, my proficiency in raw SQL remains at a basic level. However, I am keen on improving my raw SQL skills, given it's sometimes superior to ORM, and because I find SQL and relational algebra surprisingly fun to think about.
Does anyone know of websites that provide SQL puzzle games that allow users to solve problems by writing SQL and validating them? I believe this would be an engaging way to enhance my SQL skills. Your suggestions are appreciated!
48 comments
[ 2.8 ms ] story [ 94.1 ms ] thread- https://hw.leftium.com/#/item/23066776
Lost at SQL: The SQL learning game:
- https://hw.leftium.com/#/item/35665142
There are even more games in the comments.
I even use it for hiring exercises.
Otherwise, in the same vein as the SQL murder mystery, you can try the Hanukkah of Data [1].
[0]: https://leetcode.com/problem-list/leetcode-curated-sql-70/
[1]: https://hanukkah.bluebird.sh
I really enjoyed doing it when it was released!
Looking forward to the next one
Nice options ITT.
[1] https://projecteuler.net/
https://schemaverse.com/
CREATE TABLE SQL_GAMES blah blah blah
INSERT INTO SQL_GAMES many invited users blah blah blah
SELECT * FROM SQL_GAMES WHERE users are having fun blah blah blah
PROFIT blah blah blah
ENJOY even more blah
-- TODO: drastically restructure above schema and SQL statements to make more sense blah blah blah
-- there's your game blah blah blah
Remember that the local single-user databases SQLite and DuckDB exist, and that you can use them to wrangle data without even having to set up a separate server. You just create a database file on your machine and go from there.
I'm familiar with MySQL/MariaDB, but have no experience with Postgres.
It's not SQL directly (it's the Kusto query language) which is more geared towards reading data and analytics.
I'm suggesting it however because the queries in it are also basically relational algebra (aka much of the knowledge is transferable to SQL - minus some special features like anomaly analysis), they give decently sized datasets with billions of rows and the challenges themselves were fun.
I teach uni. couses on databases and made the game for my student to give them a more self-driven way to learn SQL.
[1] https://gitlab.com/leifhka/datastar
I feel like the game has a lot of potential but some stuff feels kinda painful.
Like figuring out all constants for example.
Regarding constants, which are you thinking of?