Publisher: O'Reilly Media Released: April 2002 Pages: 336
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. |
-
Chapter 1 Introduction to SQL -
What Is SQL? -
A Brief History of SQL -
A Simple Database -
DML Statements -
Chapter 2 The WHERE Clause -
Life Without WHERE -
WHERE to the Rescue -
WHERE Clause Evaluation -
Conditions and Expressions -
WHERE to Go from Here -
Chapter 3 Joins -
Inner Joins -
Outer Joins -
Self Joins -
Joins and Subqueries -
DML Statements on a Join View -
ANSI-Standard Join Syntax in Oracle9i -
Chapter 4 Group Operations -
Aggregate Functions -
The GROUP BY Clause -
The HAVING Clause -
Chapter 5 Subqueries -
What Is a Subquery? -
Noncorrelated Subqueries -
Correlated Subqueries -
Inline Views -
Subquery Case Study: The Top N Performers -
Chapter 6 Handling Temporal Data -
Internal DATE Storage Format -
Getting Dates In and Out of a Database -
Date Manipulation -
Oracle9i New DATETIME Features -
INTERVAL Literals -
Chapter 7 Set Operations -
Set Operators -
Using Set Operations to Compare Two Tables -
Using NULLs in Compound Queries -
Rules and Restrictions on Set Operations -
Chapter 8 Hierarchical Queries -
Representing Hierarchical Information -
Simple Hierarchy Operations -
Oracle SQL Extensions -
Complex Hierarchy Operations -
Restrictions on Hierarchical Queries -
Chapter 9 DECODE and CASE -
DECODE, NVL, and NVL2 -
The Case for CASE -
DECODE and CASE Examples -
Chapter 10 Partitions, Objects, and Collections -
Table Partitioning -
Objects and Collections -
Chapter 11 PL/SQL -
What Is PL/SQL? -
Procedures, Functions, and Packages -
Calling Stored Functions from Queries -
Restrictions on Calling PL/SQL from SQL -
Stored Functions in DML Statements -
The SQL Inside Your PL/SQL -
Chapter 12 Advanced Group Operations -
ROLLUP -
CUBE -
The GROUPING Function -
GROUPING SETS -
Oracle9i Grouping Features -
The GROUPING_ID and GROUP_ID Functions -
Chapter 13 Advanced Analytic SQL -
Analytic SQL Overview -
Ranking Functions -
Windowing Functions -
Reporting Functions -
Summary -
Chapter 14 SQL Best Practices -
Know When to Use Specific Constructs -
Avoid Unnecessary Parsing -
Consider Literal SQL for Decision Support Systems -
Colophon |
- Title:
- Mastering Oracle SQL
- By:
- Sanjay Mishra, Alan Beaulieu
- Publisher:
- O'Reilly Media
- Formats:
-
- Print:
- April 2002
- Pages:
- 336
- Print ISBN:
- 978-0-596-00129-2
- | ISBN 10:
- 0-596-00129-0
|
-
Sanjay Mishra 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. View Sanjay Mishra's full profile page. -
Alan Beaulieu 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. View Alan Beaulieu's full profile page. |
Colophon Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The insect on the cover of Mastering Oracle SQL is a lantern fly. The lantern fly is mostly tropical, with a wingspan of up to six inches. The lantern fly's elongated head is an evolutionary adaptation called automimicry, in which parts of the body are disguised or artifically shifted to other areas to confuse predators: the lantern fly's head looks like a tail, and its tail looks like a head. On the rear it has artificial eyes and antennae. Colleen Gorman was the production editor and copyeditor for Mastering Oracle SQL. Sheryl Avruch and Ann Schirmer provided quality control. Tom Dinse wrote the index. Ellie Volckhausen and Emma Colby designed the cover of this book, based on a series design by Edie Freedman. The cover image is a 19th-century engraving from Johnson's Natural History. Emma Colby produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font. David Futato designed the interior layout. Neil Walls converted the files from Microsoft Word to FrameMaker 5.5.6 using tools written in Perl by Erik Ray, Jason McIntosh, and Neil Walls, as well as tools written by Mike Sierra. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSans Mono Condensed. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand 9 and Adobe Photoshop 6. The tip and warning icons were drawn by Christopher Bing. This colophon was written by Colleen Gorman. |
|
Description
|
Table of Contents
|
Product Details
|
About the Author
|
Colophon
|
 |
|
 |
|
|
|
Recommended for You
|
Recently Viewed
|
 |
|
By Ethan Watrall, Jeff Siarto
December 2008
Ebook: $39.99
Print & Ebook: $54.99
Print: $49.99
By Steven Feuerstein, Bill Pribyl
September 2002
|
Customer Reviews
3/6/2003 (1 of 1 customers found this review helpful) 4.0Mastering Oracle SQL Review 1/27/2003 (1 of 1 customers found this review helpful) 4.0Mastering Oracle SQL Review By marscoast from Undisclosed 10/15/2002 (2 of 2 customers found this review helpful) 5.0Mastering Oracle SQL Review By Vinnie from Undisclosed 8/22/2002 5.0Mastering Oracle SQL Review By K Vainstein from Undisclosed 7/25/2002 5.0Mastering Oracle SQL Review By Hemant Arora from Undisclosed 6/24/2002 5.0Mastering Oracle SQL Review
|
|
|