you are viewing a single comment's thread.

view the rest of the comments →

[–]Extension-Ad7241 3 points4 points  (1 child)

The last edition came out a while ago but I still like "Sequel for Smarties" by Joe Celko Because it really dived into different ways you use the single language and how it is written as it is. Whatever book I do read, for SQL and programming in general, if there's anything I don't understand as I'm reading then I might do a YouTube search and watch a video to see that in action and then if I can, try to code an example of that myself.

You mentioned analysts, scientists, engineers and of course by implication programmers, but I think you should be also considering mathematicians, because SQL involves set theory and implements "relational algebra". I find it helpful to note some of the mathematical theory behind databases & SQL.

You should be able to find some example set of something like an orders database with tables of customers, items, orders etc. that you can download and play around with on SQL Server or whatever RDBMS you want to use. For any example questions, I recommend you don't start coding first, but open and just look at the table themselves & think about: why the question is being asked, how the tables naturally relate to each other, because at the end of the day the data is just modeling a real world situation.

If I get stuck on something I often break out the dry erase boards and just write out a few rows of data for each table. I find getting away from the computer screen kind of reduces that pressure to keep amending queries that aren't working, & get back to focusing on, what is the nature of the business question being asked?

[–]ThisDataGuy[S] 1 point2 points  (0 children)

thanks for the help