Mastering Oracle SQL, 2/e (Paperback)
暫譯: 精通 Oracle SQL, 第二版 (平裝本)

Sanjay Mishra, Alan Beaulieu

  • 出版商: O'Reilly
  • 出版日期: 2004-07-27
  • 售價: $1,900
  • 貴賓價: 9.5$1,805
  • 語言: 英文
  • 頁數: 496
  • 裝訂: Paperback
  • ISBN: 0596006322
  • ISBN-13: 9780596006327
  • 相關分類: OracleSQL
  • 已過版

買這商品的人也買了...

商品描述

Description:

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 new 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.

 

Table of Contents:

Preface

1. Introduction to SQL
     What Is SQL?
     A Brief History of SQL
     A Simple Database
     DML Statements
     So Why Are There 17 More Chapters?

2. The WHERE Clause
     Life Without WHERE
     WHERE to the Rescue
     WHERE Clause Evaluation
     Conditions and Expressions
     WHERE to Go from Here

3. Joins
     What Is a Join Query?
     Join Conditions
     Types of Joins
     Joins and Subqueries
     DML Statements on a Join View

4. Group Operations
     Aggregate Functions
     The GROUP BY Clause
     The HAVING Clause
     Nested Group Operations

5. Subqueries
     What Is a Subquery?
     Noncorrelated Subqueries
     Correlated Subqueries
     Inline Views
     Subquery Case Study: The Top N Performers

6. Handling Temporal Data
     Time Zones
     Temporal Data Types in Oracle
     Literals of Temporal Types
     Getting Temporal Data In and Out of a Database
     Date and Time Formats
     Manipulating Temporal Data

7. Set Operations
     Set Operators
     Precedence of Set Operators
     Comparing Two Tables
     Using NULLs in Compound Queries
     Rules and Restrictions on Set Operations

8. Hierarchical Queries
     Representing Hierarchical Information
     Simple Hierarchy Operations
     Oracle SQL Extensions
     Complex Hierarchy Operations
     Restrictions on Hierarchical Queries
     Enhancements in Oracle Database 10g

9. DECODE and CASE
     DECODE, NULLIF, NVL, and NVL2
     The Case for CASE
     DECODE and CASE Examples

10. Partitioning
     Partitioning Concepts
     Partitioning Tables
     Partitioning Indexes
     Partitioning Methods
     Specifying Partitions
     Partition Pruning

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

12. Objects and Collections
     Object Types
     Collection Types
     Collection Instantiation
     Querying Collections
     Collection Unnesting
     Collection Functions
     Comparing Collections
     Manipulating Collections
     Multilevel Collections

13. Advanced Group Operations
     Multiple Summary Levels
     Pushing the GROUPING Envelope
     The GROUPING_ID and GROUP_ID Functions

14. Advanced Analytic SQL
     Analytic SQL Overview
     Ranking Functions
     Windowing Functions
     Reporting Functions
     Summary

15. SQL Best Practices
     Know When to Use Specific Constructs
     Avoid Unnecessary Parsing
     Consider Literal SQL for Decision-Support Systems

16. XML
     What Is XML?
     Storing XML Data
     Generating XML Documents
     Summary

17. Regular Expressions
     Elementary Regular Expression Syntax
     Advanced Function Options
     Advanced Regular Expression Syntax

18. Model Queries
     Basic Elements of a Model Query
     Cell References
     Rules
     Iterative Models
     Reference Models

Appendix: Oracle's Old Join Syntax

Index

商品描述(中文翻譯)

描述:


絕大多數的 Oracle SQL 書籍僅討論一些語法,提供使用 Oracle SQL 的基本知識,並可能包含幾個簡單的範例。這可能足以通過一門概論課程,或讓你在與真正的 Oracle DBA 交談時能夠使用一些流行的術語。但如果你經常使用 Oracle SQL,你會想要更多。你想要充分利用 SQL 的全部功能,在 Oracle 環境中撰寫查詢。你想要對 Oracle SQL 的可能性有堅實的理解,創造性地撰寫有效且準確的查詢的技巧,以及能夠實際應用的資訊,這些都能讓你真正掌握這門語言。簡而言之,你想要的是可以立即投入使用的有用專家最佳實踐,而不僅僅是非供應商特定的概述或理論。

這本備受推崇的 Mastering Oracle SQL 新版已更新至最新的 Oracle 版本 Oracle 10g,對技術和 Oracle 的 SQL 實作的重點比市場上任何其他書籍都更強。它涵蓋了 Oracle 廣泛的內建函數庫、Oracle SQL 查詢撰寫功能的全範圍、正則表達式支援、新的聚合和分析函數、在 SELECT 和 WITH 子句中的子查詢、多集合聯集運算子、增強的層次查詢支援:葉子和迴圈檢測,以及 CONNECT_BY_ROOT 運算子、新的分區方法(部分在 Oracle9i Release 2 中引入)和原生 XML 數據類型 XMLType。

Mastering Oracle SQL 第二版填補了有時不完整的供應商文檔與其他未能深入探討 Oracle 特定 SQL 可能性的 SQL 書籍之間的空白。對於那些希望利用 Oracle SQL 未被開發(且常被忽視)力量的人來說,這本將 Oracle SQL 實際應用的必備指南將是無價的。


 


目錄:

前言

1. SQL 簡介

     什麼是 SQL?

     SQL 的簡史

     一個簡單的資料庫

     DML 語句

     那麼為什麼還有 17 章呢?

2. WHERE 子句

     沒有 WHERE 的生活

     WHERE 的救援

     WHERE 子句的評估

     條件和表達式

     接下來該往哪裡去

3. 連接

     什麼是連接查詢?

     連接條件

     連接的類型

     連接和子查詢

     在連接視圖上的 DML 語句

4. 群組操作

     聚合函數

     GROUP BY 子句

     HAVING 子句

     嵌套群組操作

5. 子查詢

     什麼是子查詢?

     非相關子查詢

     相關子查詢

     內聯視圖

     子查詢案例研究:前 N 名表現者

6. 處理時間數據

     時區

     Oracle 中的時間數據類型

     時間類型的字面值

     將時間數據進出資料庫

     日期和時間格式

     操作時間數據

7. 集合操作

     集合運算子

     集合運算子的優先順序

     比較兩個表

     在複合查詢中使用 NULL

     集合操作的規則和限制

8. 層次查詢

     表示層次信息

     簡單的層次操作

     Oracle SQL 擴展

     複雜的層次操作

     層次查詢的限制

     Oracle Database 10g 的增強功能

9. DECODE 和 CASE

     DECODE、NULLIF、NVL 和 NVL2

     CASE 的理由

     DECODE 和 CASE 範例

10. 分區

     分區概念

     分區表

     分區索引

     分區方法

     指定分區

     分區修剪

11. PL/SQL

     什麼是 PL/SQL?

     程序、函數和包

     從查詢中調用儲存函數

     從 SQL 調用 PL/SQL 的限制

     DML 語句中的儲存函數

     你 PL/SQL 中的 SQL

12. 物件和集合

     物件類型

     集合類型

     集合實例化

     查詢集合

     集合展開

     集合函數

     比較集合

     操作集合

     多層集合

13. 進階群組操作

     多重摘要層級

     推進 GROUPING 的邊界

     GROUPING_ID 和 GROUP_ID 函數

14. 進階分析 SQL

     分析 SQL 概述

     排名函數

     視窗函數

     報告函數

     總結

15. SQL 最佳實踐

     知道何時使用特定結構

     避免不必要的解析

     考慮用於決策支持系統的字面 SQL

16. XML

     什麼是 XML?

     儲存 XML 數據

     生成 XML 文件

     總結

17. 正則表達式

     基本正則表達式語法

     進階函數選項

     進階正則表達式語法

18. 模型查詢

     模型查詢的基本元素

     單元格引用

     規則

     迭代模型

     參考模型

附錄:Oracle 的舊連接語法

索引