Mastering Oracle SQL: Putting Oracle SQL to Work

Mastering Oracle SQL: Putting Oracle SQL to Work

Mastering Oracle SQL: Putting Oracle SQL to Work

Mastering Oracle SQL: Putting Oracle SQL to Work

eBook

$23.99  $31.99 Save 25% Current price is $23.99, Original price is $31.99. You Save 25%.

Available on Compatible NOOK Devices and the free NOOK Apps.
WANT A NOOK?  Explore Now

Related collections and offers


Overview

The vast majority of Oracle SQL books discuss some syntax, provide the barest rudiments of using Oracle SQL, and perhaps include a few simple examples. It might be enough to pass a survey course, or give you some buzz words to drop in conversation with real Oracle DBAs. But if you use Oracle SQL on a regular basis, you want much more. You want to access the full power of SQL to write queries in an Oracle environment. You want a solid understanding of what's possible with Oracle SQL, creative techniques for writing effective and accurate queries, and the practical, hands-on information that leads to true mastery of the language. Simply put, you want useful, expert best practices that can be put to work immediately, not just non-vendor specific overview or theory.Updated to cover the latest version of Oracle, Oracle 10g, this edition of the highly regarded Mastering Oracle SQL has a stronger focus on technique and on Oracle's implementation of SQL than any other book on the market. It covers Oracle s vast library of built-in functions, the full range of Oracle SQL query-writing features, regular expression support, new aggregate and analytic functions, subqueries in the SELECT and WITH clauses, multiset union operators, enhanced support for hierarchical queries: leaf and loop detection, and the CONNECT_BY_ROOT operator, new partitioning methods (some introduced in Oracle9i Release 2), and the native XML datatype, XMLType.Mastering Oracle SQL, 2nd Edition fills the gap between the sometimes spotty vendor documentation, and other books on SQL that just don't explore the full depth of what is possible with Oracle-specific SQL. For those who want to harness the untapped (and often overlooked) power of Oracle SQL, this essential guide for putting Oracle SQL to work will prove invaluable.


Product Details

ISBN-13: 9780596552473
Publisher: O'Reilly Media, Incorporated
Publication date: 06/22/2004
Sold by: Barnes & Noble
Format: eBook
Pages: 496
File size: 3 MB

About the Author

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 UniversitySchool of Engineering. He lives in Massachusetts with his wife and two daughters and can be reached at albeau_mosql@yahoo.com.

Table of Contents

Prefaceix
1.Introduction to SQL1
What Is SQL?1
A Brief History of SQL3
A Simple Database4
DML Statements5
So Why Are There 17 More Chapters?17
2.The Where Clause18
Life Without Where18
Where to the Rescue19
Where Clause Evaluation20
Conditions and Expressions23
Where to Go from Here30
3.Joins31
What Is a Join Query?31
Join Conditions32
Types of Joins37
Joins and Subqueries53
DML Statements on a Join View53
4.Group Operations62
Aggregate Functions62
The Group By Clause66
The Having Clause74
Nested Group Operations77
5.Subqueries80
What Is a Subquery?80
Noncorrelated Subqueries81
Correlated Subqueries88
Inline Views91
Subquery Case Study: The Top N Performers106
6.Handling Temporal Data112
Time Zones112
Temporal Data Types in Oracle114
Literals of Temporal Types120
Getting Temporal Data In and Out of a Database126
Date and Time Formats134
Manipulating Temporal Data146
7.Set Operations166
Set Operators167
Precedence of Set Operators172
Comparing Two Tables173
Using NULLs in Compound Queries176
Rules and Restrictions on Set Operations178
8.Hierarchical Queries181
Representing Hierarchical Information181
Simple Hierarchy Operations184
Oracle SQL Extensions187
Complex Hierarchy Operations193
Restrictions on Hierarchical Queries204
Enhancements in Oracle Database 10g204
9.Decode and Case210
Decode, Nullif, NVL, and NVL2210
The Case for Case214
Decode and Case Examples217
10.Partitioning230
Partitioning Concepts230
Partitioning Tables231
Partitioning Indexes231
Partitioning Methods232
Specifying Partitions238
Partition Pruning239
11.PL/SQL243
What Is PL/SQL?243
Procedures, Functions, and Packages244
Calling Stored Functions from Queries246
Restrictions on Calling PL/SQL from SQL251
Stored Functions in DML Statements254
The SQL Inside Your PL/SQL256
12.Objects and Collections258
Object Types258
Collection Types267
Collection Instantiation268
Querying Collections269
Collection Unnesting270
Collection Functions271
Comparing Collections273
Manipulating Collections275
Multilevel Collections276
13.Advanced Group Operations279
Multiple Summary Levels279
Pushing the Grouping Envelope301
The Grouping_ID and Group_ID Functions311
14.Advanced Analytic SQL320
Analytic SQL Overview320
Ranking Functions326
Windowing Functions339
Reporting Functions346
Summary351
15.SQL Best Practices352
Know When to Use Specific Constructs352
Avoid Unnecessary Parsing358
Consider Literal SQL for Decision-Support Systems363
16.XML365
What Is XML?365
Storing XML Data366
Generating XML Documents382
Summary387
17.Regular Expressions389
Elementary Regular Expression Syntax389
Advanced Function Options401
Advanced Regular Expression Syntax405
18.Model Queries417
Basic Elements of a Model Query417
Cell References419
Rules427
Iterative Models442
Reference Models445
AppendixOracle's Old Join Syntax449
Index455
From the B&N Reads Blog

Customer Reviews