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!
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
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 even use it for hiring exercises.
- 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 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?