Chapter 5. It's About the Question

Karen Morton

"It's not about the query, it's about the question." That's one of my favorite sayings when it comes to writing SQL. Regardless of your level of proficiency, writing SQL well is as much about questions as it is about queries.

There are many ways that questions play an important role when writing SQL. First, understanding the question behind the query is often more important than the query syntax itself. If you start with the question the SQL is intended to answer, you will be more likely to think through and understand how to best formulate the query to get the desired result. Second, it is critical to be able to ask good questions to clarify what the SQL is intended to do and to gather all the pertinent ...

Get Pro Oracle SQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.