Chapter 11. Thinking in SQL
I HAVE BEEN telling students that you need about one year of full-time SQL programming before you have an epiphany and start thinking in SQL. Most beginners mimic their original programming language until they have their epiphany.
When DB2 was first released, you would find COBOL programmers who converted their existing file layouts into CREATE TABLE statements, the READ statements were converted into FETCH statements and so forth—a simple one-to-one mapping from one language to another. There were no JOIN operations done in the SQL. Cursors looped through data as if they were reading a magnetic tape file. Even today, people are making similar mistakes with DB2 when they try to convert old VSAM applications to DB2 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access