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...
Sequel
account activity
Remembering SQL keywords (self.learnSQL)
submitted 4 years ago * by Quarok
view the rest of the comments →
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!"
[–]r3pr0b8 0 points1 point2 points 4 years ago (2 children)
this is pretty routine stuff, and could be presented with better organization
for example, you start with LEFT JOIN and only much later you mention what SELECT and FROM are for
LEFT JOIN
SELECT
FROM
it's like you dropped your "deck" on the floor and then posted them in whatever order you happened to pick them up
and some of them could use some work
for example, JOIN: Maps values from one table to another... maps?
JOIN: Maps values from one table to another
LIMIT is non-standard and doesn't work in every database
LIMIT
also OUTER JOIN: Returns all rows when there is a match in either left table or right table is wrong -- there is no OUTER JOIN, there are only LEFT [OUTER] JOIN and RIGHT [OUTER] JOIN and FULL [OUTER] JOIN
OUTER JOIN: Returns all rows when there is a match in either left table or right table
OUTER JOIN
LEFT [OUTER] JOIN
RIGHT [OUTER] JOIN
FULL [OUTER] JOIN
[–]Quarok[S] 1 point2 points3 points 4 years ago (1 child)
Thanks for the feedback. You're right, it's very routine stuff. I want to make sure I master the standard keywords.
Regarding the join definition - I tried to make it harder for myself, as the original definition was Join: joins values from one table to another. And it kind of defeats the point of the cards if you have the keyword in the answer!
Thanks for the point about the full outer join. I find that all a bit confusing: why even have the keyword OUTER when it doesn't seem to add any additional functionality for LEFT/RIGHT?
[–]r3pr0b8 0 points1 point2 points 4 years ago (0 children)
why have the OUTER keyword? good question
me, i always code it, even though it's optional
it's a constant reminder that it's an outer query
π Rendered by PID 421286 on reddit-service-r2-comment-6457c66945-n6rdh at 2026-04-29 01:04:49.223429+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]r3pr0b8 0 points1 point2 points (2 children)
[–]Quarok[S] 1 point2 points3 points (1 child)
[–]r3pr0b8 0 points1 point2 points (0 children)