Book description
Write powerful queries using as much of the feature-rich Oracle SQL language as possible, progressing beyond the simple queries of basic SQL as standardized in SQL-92.Both standard SQL and Oracle’s own extensions to the language have progressed far over the decades in terms of how much you can work with your data in a single, albeit sometimes complex, SQL statement. If you already know the basics of SQL, this book provides many examples of how to write even more advanced SQL to huge benefit in your applications, such as:
- Pivoting rows to columns and columns to rows
- Recursion in SQL with MODEL and WITH clauses
- Answering Top-N questions
- Forecasting with linear regressions
- Row pattern matching to group or distribute rows
- Using MATCH_RECOGNIZE as a row processing engine
What You Will Learn
- Take full advantage of advanced and modern features in Oracle SQL
- Recognize when modern SQL constructs can help create better applications
- Improve SQL query building skills through stepwise refinement
- Apply set-based thinking to process more data in fewer queries
- Make cross-row calculations with analytic functions
- Search for patterns across multiple rows using row pattern matching
- Break complex calculations into smaller steps with subquery factoring
Who This Book Is For
Oracle Database developers who already know some SQL, but rarely use features of the language beyond the SQL-92 standard. And it is for developers who would like to apply the more modern features of Oracle SQL, but don’t know where to start. The book also is for those who want to write increasingly complex queries in a stepwise and understandable manner. Experienced developers will use the book to develop more efficient queries using the advanced features of the Oracle SQL language.
Table of contents
- Cover
- Front Matter
-
Part I. Core SQL
- 1. Correlating Inline Views
- 2. Pitfalls of Set Operations
- 3. Divide and Conquer with Subquery Factoring
- 4. Tree Calculations with Recursion
- 5. Functions Defined Within SQL
- 6. Iterative Calculations with Multidimensional Data
- 7. Unpivoting Columns to Rows
- 8. Pivoting Rows to Columns
- 9. Splitting Delimited Text
- 10. Creating Delimited Text
- Part II. Analytic Functions
- Part III. Row Pattern Matching
- Back Matter
Product information
- Title: Practical Oracle SQL: Mastering the Full Power of Oracle Database
- Author(s):
- Release date: February 2020
- Publisher(s): Apress
- ISBN: 9781484256176
You might also like
book
Software Engineering at Google
Today, software engineers need to know not only how to program effectively but also how to …
book
Java Cookbook, 4th Edition
Java continues to grow and evolve, and this cookbook continues to evolve in tandem. With this …
book
Kafka: The Definitive Guide
Every enterprise application creates data, whether it’s log messages, metrics, user activity, outgoing messages, or something …
book
Introducing Python, 2nd Edition
Easy to understand and fun to read, this updated edition of Introducing Python is ideal for …