I was just trying to show the power of an inner join in locating matching records....
I was just trying to point out that it is bad form, no more no less. You never know who might be watching and what skill level they are at, in terms of database programming. For someone that might not know and is figuring out on their own, it might be easy to just take whatever they see (bad habits and all) and not know any better. This can especially be problematic if they are the only programmer on premises who is doing such things, or if there isn't much quality oversight. In that respect, if we are helping people to learn by answering these forum posts, then it would be smart to make sure they learn the proper lessons.
To another topic: It occurred to me that it might be valuable to post the resources I have here, anyway. YMMV on most of this, since some of it vendor related, and again its usefulness depends on what you are doing with respect to the databases.
For practical technical knowledge of how an RDBMS works (mainly if you are beginning a study to be a wholesale DBA), the book I have on my shelf is
"Oracle: A Beginner's Guide" by Michael Abbey and Michael J. Corey. It is Oracle specific, and I'm sure there are equivalent books out there for other major databases on the market. But even if you don't actually use the information at all, it's a good introductory read into the technicals behind a RDBMS (installation, maintenance issues, typical toolsets, and so on) that can present good background understanding.
For database & table design concepts, along with the basic concepts of databases (for example, what is the difference between something like Access and SQL Server, and why would you use each?), I haven't found much better than
"Database Processing: Fundamentals, Design, and Implementation" by David M. Kroenke This information is useful as a programmer if you are adding/changing tables to a current database processing system or creating a new database processing system.
The introductory/reference book I have on my shelf for SQL is
"The SQL Guide to Oracle" by Rick F. van der Laans. While most books of this nature will be vendor-specific, I find this one to be very thorough regarding the things you can do with SQL. It doesn't just cover how to query tables (data retrieval and modification), but also does a good job on describing how to create and alter tables.
Again, there is
a structured ANSI SQL standard language, but there are vendor-specific extensions in this language as any other. For example, any C book works for instruction with any C compiler, but if the C book describes a vendor extension in the compiler, then it won't be useful for the other vendors compilers.
If you're looking for a good intermediate to master level SQL book, almost the only choice is
"Joe Celko's SQL for Smarties: Advanced SQL Programming". The author himself recommends at least a year of basic experience before you jump in on this book, so keep that in mind if you persue this one. He also has a good book of problems, if you're really interested in chasing after some solid SQL experience, though not really necessary if you're looking to learn something.
___________________________
If you notice, I've stayed away from recommending any programming language specific books, since the process for program integration is suprisingly similar between the different languages. It is also identical for every statement you run. The process is always "submit statement, query return code, deal with data, if necessary".
Much of this is an advantage with RDBMS, since if it is set up properly for programs to connect to it, anything should be able to do it. There are different methods to accomplish the connection, but the process never changes.
But this process is always RDBMS specific, too, so you would need to look towards the documentation of the specific RDBMS you are targeting, or look for examples to adapt. But generally, the process isn't too complex - sometimes you have to run a pre-compiler, other times you just have to make sure the DBMS client is running on the computer and simply call it.
If someone has happened to write a programming-language specific RDBMS book (or even a chapter) and you find it, make sure it covers an extremely significant cross-section of databases on the market, along with examples. If it doesn't, pass it up since it likely won't be of much use in the long run.
Hope all that helps.
I'm waiting for the white paper entitled "Finding Employment in the Era of Occupational Irrelevancy