Live data from Hacker News

Ask HN: Junior SQL developers – How do you learn SQL?

news.ycombinator.com

41–46 of 46 posts

Re: Ask HN: Junior SQL developers – How do you learn SQL?

#41
Reading official docs (be it postgresql, clickhouse, elasticsearch, redis), a lot of googling and stackoverflow, reading blogs and watching presentations on latest developments (like Altinity does for ClickHouse).

Thing is I want to cover the latest stable version of tools im using so i can take advantage of their latest features that might be absent on older ones and not covered by older third party content. The latest stable docs and changelogs are my best source for that.

Re: Ask HN: Junior SQL developers – How do you learn SQL?

#42

I learned by doing queries in Microsoft Access 2000, then looking at the query in "SQL View". The nice thing about Access is that it managed table relations for you, so master/detail tables are almost trivial.

Bit of a nitpick.

Relations are another name for the tables, relations are not the joins between them.

Re: Ask HN: Junior SQL developers – How do you learn SQL?

#43
post #42

I learned by doing queries in Microsoft Access 2000, then looking at the query in "SQL View". The nice thing about Access is that it managed table relations for you, so master/detail tables are almost trivial.

Bit of a nitpick. Relations are another name for the tables, relations are not the joins between them.

If you have a master table with detail records, access just handles it, you don't have to do any SQL yourself to be able to just have a form that accesses them and lets you do all the CRUD operations.

The information about this is stored in the "Relationships Window"

Re: Ask HN: Junior SQL developers – How do you learn SQL?

#44
In college my prof had this book she made with maybe a thousand sql drills with answers. I never went to the class and just drilled all the problems and somehow got good at sql around that time.

Need to find that book again, but I think sql is something you need to drill.

I’ll take a look at some of the links in this thread, and I’m hoping one of them is just a giant bank of sql drills, and would be great if anyone knows of similar books/sites.

Re: Ask HN: Junior SQL developers – How do you learn SQL?

#45
post #42

Earlier quoted context omitted.

Bit of a nitpick. Relations are another name for the tables, relations are not the joins between them.

If you have a master table with detail records, access just handles it, you don't have to do any SQL yourself to be able to just have a form that accesses them and lets you do all the CRUD operations. The information about this is stored in the "Relationships Window"

Yes I'm familiar with it. What I'm saying is that :

relation = table. join = relationship.

Re: Ask HN: Junior SQL developers – How do you learn SQL?

#46
Thanks to everyone for all comments here.

I made https://interactivesql.com to help all those people who just start to learn databases, SQL, queries, and more.

I am compiling 120+ lessons now to cover everything from the basics (select, join, group by, to CTEs, Analytic Functions, performance, reporting, and more)

Hope this helps. Feel free to let me know what do you think about it.

Post reply on HN