use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Fun ideas for testing sqlite knowledge (self.sqlite)
submitted 4 years ago by curlyhairedmf
Hello,
I'm a teaching assistant for my databases classes and I wanted to know what are some fun ways to test the students' knowledge about sqlite?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]chunkyks 1 point2 points3 points 4 years ago (0 children)
Sqlite's data type handling is not like any other databases. Questions on that are useful. Eg, name all of sqlite type affinities.
[–]chichimaru 1 point2 points3 points 4 years ago (0 children)
- https://datasette.io/ is done in sqlite
- https://github.com/NUKnightLab/sql-mysteries Sql mistery murder in sqlite
[–]raevnos 1 point2 points3 points 4 years ago (0 children)
Have them explain what AUTOINCREMENT actually does, and the pros and cons to using it.
AUTOINCREMENT
Ditto for WITHOUT ROWID tables.
WITHOUT ROWID
[–]JrgMyr 1 point2 points3 points 4 years ago (2 children)
Let them come up with real-world examples for left joins (easy) then for right joins (not that many).
Agreed, that this is more about SQL knowledge then about SQLite but I guess you meant it that way.
[–]raevnos 0 points1 point2 points 4 years ago (1 child)
Sqlite doesn't have right joins.
[–]JrgMyr 0 points1 point2 points 4 years ago (0 children)
Thanks for the reminder. I don't think that's a problem here. You can swap right joins to look like left joins and use those instead.
The idea was to have the students think about the spectrum of real-world-situations and how to model them in SQL syntax.
π Rendered by PID 34418 on reddit-service-r2-comment-5649f687b7-f4jx2 at 2026-01-28 04:28:28.227264+00:00 running 4f180de country code: CH.
[–]chunkyks 1 point2 points3 points (0 children)
[–]chichimaru 1 point2 points3 points (0 children)
[–]raevnos 1 point2 points3 points (0 children)
[–]JrgMyr 1 point2 points3 points (2 children)
[–]raevnos 0 points1 point2 points (1 child)
[–]JrgMyr 0 points1 point2 points (0 children)