Mastering Oracle SQL

Front Cover
"O'Reilly Media, Inc.", 2002 - Computers - 321 pages

If you write programs to run against an Oracle database, you spend a lot of time and mental energy writing queries to return the data your programs need. Knowledge of SQL, and particularly of Oracle's implementation of SQL, is the key to writing good queries in a timely manner. In this book, the authors share their knowledge of Oracle SQL, and show you many creative techniques that you can use to advantage in your own applications.This book shows you how to:

  • Leverage Oracle's vast library of built-in SQL functions
  • Query time-based data, and write joins involving date and time ranges
  • Use Oracle SQL's hierarchical query features to deal with data best represented in a tree format
  • Use DECODE and CASE to implement conditional logic in your queries
  • Use Oracle's new, analytic SQL features to write ranking queries, lag and lead queries, windowing queries, and more
  • Join data from two or more tables using the newly supported SQL92 join syntax
In addition, you'll see how SQL can best be integrated with PL/SQL. You'll also learn various best practices to help you write SQL queries that perform efficiently.Precious few books on the market today go beyond discussing syntax and the barest rudiments of using Oracle SQL. This book changes that, showing you how to creatively leverage the full power of SQL to write queries in an Oracle environment.
 

What people are saying - Write a review

We haven't found any reviews in the usual places.

Contents

Introduction to SQL
1
The WHERE Clause
14
Joins
26
Group Operations
55
Subqueries
68
Handling Temporal Data
95
Set Operations
144
Hierarchical Queries
157
DECODEandCASE
175
Partitions Objects and Collections
192
PLSQL
213
Advanced Group Operations
228
AdvancedAnalyticSQL
267
SQL Best Practices
297
Index
308
Copyright

Other editions - View all

Common terms and phrases

About the author (2002)

Sanjay Mishra is a certified Oracle database administrator with more than ten years of IT experience. He has been involved in the design, architecture, and implementation of many mission-critical and decision support databases. He has worked extensively in the areas of database architecture, database management, backup / recovery, performance tuning, Oracle Parallel Server, and parallel execution. He has a Bachelor of Science degree in Electrical Engineering, and a Master of Engineering degree in Systems Science and Automation. He is the coauthor of Oracle Parallel Processing and Oracle SQL Loader: The Definitive Guide (both published by O'Reilly & Associates). Presently, he works as a database architect at Dallas Based i2 Technologies, and can be reached at sanjay_mishra@i2.com.

Alan Beaulieu has been designing, building, and implementing custom database applications for over 13 years. He currently runs his own consulting company that specializes in designing Oracle databases and supporting services in the fields of Financial Services and Telecommunications. In building large databases for both OLTP and OLAP environments, Alan utilizes such Oracle features as Parallel Query, Partitioning, and Parallel Server. Alan has a Bachelor of Science degree in Operations Research from the Cornell University School of Engineering. He lives in Massachusetts with his wife and two daughters and can be reached at albeau_mosql@yahoo.com.

Bibliographic information