Skip to main content
  • Book
  • © 2018

Oracle SQL Revealed

Executing Business Logic in the Database Engine

Apress

Authors:

  • Guides you in using analytic functions, the model clause, row pattern matching, and other powerful features in Oracle SQL

  • Helps you find competitive advantage through built-in features that are commonly overlooked

  • Assists you in choosing when to take a procedural approach in PL/SQL

  • Provides examples showing the power of Oracle SQL applied to real-life tasks

  • Presents in-depth analysis of joins, which is one of the most important SQL features

Buy it now

Buying options

eBook USD 19.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 29.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (13 chapters)

  1. Front Matter

    Pages i-x
  2. Features and Theory

    1. Front Matter

      Pages 1-3
    2. Joins

      • Alex Reprintsev
      Pages 5-66
    3. Query Transformations

      • Alex Reprintsev
      Pages 67-83
    4. Analytic Functions

      • Alex Reprintsev
      Pages 85-102
    5. Aggregate Functions

      • Alex Reprintsev
      Pages 103-118
    6. Hierarchical Queries: Connect by

      • Alex Reprintsev
      Pages 119-138
    7. Recursive Subquery Factoring

      • Alex Reprintsev
      Pages 139-159
    8. Model

      • Alex Reprintsev
      Pages 161-197
    9. Row Pattern Matching: match_recognize

      • Alex Reprintsev
      Pages 199-216
    10. Logical Execution Order of Query Clauses

      • Alex Reprintsev
      Pages 217-233
    11. Turing Completeness

      • Alex Reprintsev
      Pages 235-242
  3. PL/SQL and SQL solutions

    1. Front Matter

      Pages 243-244
    2. When PL/SQL Is Better Than Vanilla SQL

      • Alex Reprintsev
      Pages 245-304
    3. Solving SQL Quizzes

      • Alex Reprintsev
      Pages 305-379
    4. Useful Oracle Links

      • Alex Reprintsev
      Pages 381-382
  4. Back Matter

    Pages 383-389

About this book

Write queries using little-known, but powerful, SQL features implemented in Oracle's database engine. You will be able to take advantage of Oracle’s power in implementing business logic, thereby maximizing return from your company’s investment in Oracle Database products.


Important features and aspects of SQL covered in this book include the model clause, row pattern matching, analytic and aggregate functions, and recursive subquery factoring, just to name a few. The focus is on implementing business logic in pure SQL, with a comparison of different approaches that can be used to write SELECT statements to return results that drive good decision making and competitive action in the marketplace.  

This book covers features that are often not well known, and sometimes not implemented in competing products. Chapters on query transformation and logical execution order provide a grasp of the big picture in which the individual SQL features described in the other chapters are executed. Also included are a discussion on when to use the procedural capabilities from PL/SQL, and a series of examples showing different mixes of SQL features being applied in common types of queries that you are likely to encounter. 

What You Will Learn
  • Gain competitive advantage from Oracle SQL
  • Know when to step up to PL/SQL versus staying in SQL
  • Become familiar with query transformations and join mechanics
  • Apply the model clause and analytic functions to business intelligence queries
  • Make use of features that are specific to Oracle Database, such as row pattern matching
  • Understand the pros and cons of different SQL approaches to solving common query tasks
  • Traverse hierarchies using CONNECT BY and recursive subquery factoring

Who This Book Is For



Database programmers with some Oracle Database experience. The book is also for SQL developers who are moving to the Oracle Database platform or want to learn unique features of its query engine. Both audiences will learn to apply the full power of Oracle’s own SQL dialect to commonly encountered types of business questions and query challenges. 





Authors and Affiliations

  • London, United Kingdom

    Alex Reprintsev

About the author

​Alex Reprintsev has more than 10 years of experience in database development using various databases, including Oracle, Microsoft SQL Server, MySQL, DB2, and modern SQL engines for Big Data such as Hive and Impala. He has successfully delivered applications for various customers covering different workload types such as OLTP, OLAP, and mixed workloads. During his journey, Alex has faced a number of challenges related to implementing business logic and tuning SQL for performance. He believes details really do matter, and that it is important to know and exploit the full feature set of whatever database engine you choose to build your business around. 

Bibliographic Information

  • Book Title: Oracle SQL Revealed

  • Book Subtitle: Executing Business Logic in the Database Engine

  • Authors: Alex Reprintsev

  • DOI: https://doi.org/10.1007/978-1-4842-3372-6

  • Publisher: Apress Berkeley, CA

  • eBook Packages: Professional and Applied Computing, Professional and Applied Computing (R0), Apress Access Books

  • Copyright Information: Alex Reprintsev 2018

  • Softcover ISBN: 978-1-4842-3371-9Published: 10 April 2018

  • eBook ISBN: 978-1-4842-3372-6Published: 09 April 2018

  • Edition Number: 1

  • Number of Pages: X, 389

  • Number of Illustrations: 4 b/w illustrations

  • Topics: Database Management

Buy it now

Buying options

eBook USD 19.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 29.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access