Awesome work Kao!! Earlier this year I launched a similar interactive SQL tutorial with similar goals. https://chartio.com/learn/sql/ With the writeup on why i made it here: https://medium.com/@__dave/why-i-wrote-yet-another-sql-tutor... Do let me know if there's any collaboration we could do!
Show HN: Select Star SQL, an interactive SQL book
91–100 of 121 posts
Re: Show HN: Select Star SQL, an interactive SQL book
#92See https://sqlbolt.com/ for an interactive SQL tutorial with less distracting examples.
Re: Show HN: Select Star SQL, an interactive SQL book
#93Why did you use death sentence cases as data? I've spent around 20 minutes just reading the last words of various executed people. It's... disturbing and distracting.
It's deep and moving, it makes this course more than just a course. I just fetched a few rows and read Beazley's last statement and I now have a great respect for the creator of this course.
Re: Show HN: Select Star SQL, an interactive SQL book
#94This is good intiative. We need to simplify pedagogy. On a related note, I always found the syntax of SQL to be great. Someone told me that simplicity of SQL made relational databases even more popular. It is one of the best designed language where even someone new to the field won't feel intimidated. I'm surprised designers of SQL haven't won the Turing Award yet.
I agree except one thing: SELECT cols FROM table. This should really be FROM table SELECT cols as every modern SQL editor will then be able to show you a list of available columns. See LINQ. There they had the opportunity to fix it and it works just great.
Re: Show HN: Select Star SQL, an interactive SQL book
#95Earlier quoted context omitted.
I teach SQL to financial people and, for the most part, it isn't too bad. When I get to joins, I teach a subset of SQL where all joins are done through INNER JOIN / LEFT JOIN syntax and that helps a lot. Joins are the part that everyone has trouble with.
Can you explain when to really use a lateral join?
Re: Show HN: Select Star SQL, an interactive SQL book
#96This is gorgeous, and a great topic. No matter what field you're working in, understanding databases is extraordinarily valuable...and SQL is among the longest lasting techs I've ever learned (e.g. name another programming language that is as valuable today as it was 20 years ago, if not moreso). Even with the rise of NoSQL databases, I suspect we'll all still need to know a little SQL in another 20 years (and it was…
> name another programming language that is as valuable today as it was 20 years ago, if not moreso * C * Python * Java 20 years ago was 1998.
Re: Show HN: Select Star SQL, an interactive SQL book
#97Earlier quoted context omitted.
Slightly embarrassing -- but the problem may be that the site isn't compatible with FireFox (at least pre-v63 FireFox). The site makes use of custom HTML elements which are not supported by default in pre-v63 FireFox ( https://developer.mozilla.org/en-US/docs/Web/Web_Components/... ). The good news is that all you need to do is to turn on a flag as set forth in the link provided. The bad news is that many other less…
It's 2018 and we're back in 1998 where website proudly showed "Optimized for Internet Explorer".
Re: Show HN: Select Star SQL, an interactive SQL book
#98I 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.
Re: Show HN: Select Star SQL, an interactive SQL book
#99This is gorgeous, and a great topic. No matter what field you're working in, understanding databases is extraordinarily valuable...and SQL is among the longest lasting techs I've ever learned (e.g. name another programming language that is as valuable today as it was 20 years ago, if not moreso). Even with the rise of NoSQL databases, I suspect we'll all still need to know a little SQL in another 20 years (and it was…
Re: Show HN: Select Star SQL, an interactive SQL book
#100Earlier quoted context omitted.
Can you explain when to really use a lateral join?
In Postgresql, Lateral Joins enable function chaining for set returning functions. ie you can feed the results of earlier srf function to the arguments of following function. This gets around one of Postgresql most glaring omissions - table valued parameters. Is incredibly useful once you get used to them.
CREATE FUNCTION fullname(person) RETURNS TEXT AS $$
SELECT $1.firstname || ' ' || $1.lastname
$$ LANGUAGE SQL
Could you go into a more detail wrt using lateral joins with set returning functions? I'm used to using them as a way to "extend" the row with later terms depending on prior terms as you say, but I'm not comprehending the srf case so well (or tbh the results that pop up when I search for "posrgresql set returning function").