Lurker News

Comments (112) 38 threads

Earlier comments
jannyfer1 reply#
I find the writing style interesting, but I'm not like others at my work who could benefit from learning SQL (business managers at a bank back office who rely mostly on Excel, then get stuck when Excel crashes with large datasets).

Are these funky, quirky books generally well-received outside the programming community? I quite liked Why's Poignant Guide to Ruby, for example, but I would never recommend it to anyone at work.

maroonblazer#
As a hobbyist programmer I absolutely love this style of instruction.

I don't know that I'd use "funky" or "quirky" to describe it though. Instead it comes across as clear, concise and approachable.

S_A_P2 replies#
I really like this. Bookmarked. I have spotted a few bugs that you may want to check into.

Search the page for the word “llanguage”. The sum/count checker told me it was incorrect for using lowercase nulls. I normally write all my sql lowercase for brevity, but I also mostly use sql server.
I really like what you have done here and I hesitate to report it in your show hn thread because this really is great.

chris_wot#
Constructive criticism and commentary is one of the most valuable parts of Show HN!
zckao#
Thanks so much for the feedback! Both the typo and the validity-checking bug have been fixed.
dawie5 replies#
I really like your explanations. I have never been able to wrap my head around joins.

You say that: "Programming is best learned by doing", but I am struggling to do anything...
It would be great if there was some online area like SQL Fiddle with the data loaded, so I can run queries and see results in my browser without having to set anything up or am I missing something.

geomark#
sqlzoo.net might be something you would like.
AlisdairO1 reply#
(self plug) pgexercises.com provides something like this.

The code is open source, anyone is welcome to fork and populate with new data like this.

pixelperfect1 reply#
I learned SQL mostly by using your site, thank you for making it!
dwdz1 reply#
Me too! Thanks Alisdair!

Continue this thread — 1 reply

zckao1 reply#
All the blue boxes are actually interactive code editors. You can run arbitrary queries against the dataset in them. I changed some of the wording to make it clearer. Hopefully that helps!
paulrd1 reply#
I was wondering what you were talking about. What blue boxes? Then I saw the problem. The boxes showed up in Chromium but not Firefox.
bhrgunatha#
Same here - the front matter page mentions web components - perhaps the support is different /disabled in Firefox?

The elements aren't visible in Firefox at all.

SmirkingRevenge#
One option is to learn on bigquery (a google cloud service) - its "pre-loaded" with all kinds of public datasets that you can just start querying, with a web interface for doing sql.

Its pretty easy to stay within the free tier (1TB of data per month)

netcraft#
My favorite version of sqlfiddle is dbfiddle.uk. Lots of databases and generally fast.
zitterbewegung1 reply#
I have picked up SQL and statements from my time in industry. I really like how this book provides not only interaction but a dataset that actually means something. Also, interactive systems like this for teaching are amazing! I learned about how "_" is a wildcard for one character (I have been making do with % for LIKE statements).
krylon#
I only recently learned that LIKE also supports something vaguely similar to regex character classes:

    SELECT * FROM customers
    WHERE company_name LIKE 'foo[lt]'
will only return customers whose company_name is 'fool' or 'foot', while

    SELECT * FROM customers
    WHERE zipcode LIKE '12[^30]45'
will return customers whose zipcode is LIKE '12_45', except '12345' and '12045'.

Load more comments