Book description
SQL: 1999 is the best way to make the leap from SQL-92 to SQL:1999, but it is much more than just a simple bridge between the two. The latest from celebrated SQL experts Jim Melton and Alan Simon, SQL:1999 is a comprehensive, eminently practical account of SQL's latest incarnation and a potent distillation of the details required to put it to work. Written to accommodate both novice and experienced SQL users, SQL:1999 focuses on the language's capabilities, from the basic to the advanced, and the ways that real applications take advantage of them. Throughout, the authors illustrate features and techniques with clear and often entertaining references to their own custom database.- Gives authoritative coverage from an expert team that includes the editor of the SQL-92 and SQL:1999 standards.
- Provides a general introduction to SQL that helps you understand its constituent parts, history, and place in the realm of computer languages.
- Explains SQL:1999's more sophisticated features, including advanced value expressions, predicates, advanced SQL query expressions, and support for active databases.
- Explores key issues for programmers linking applications to SQL databases.
- Provides guidance on troubleshooting, internationalization, and changes anticipated in the next version of SQL.
- Contains appendices devoted to database design, a complete SQL:1999 example, the standardization process, and more.
Table of contents
- Front Cover
- SQL:1999 Understanding Relational Language Components
- Copyright Page
- Contents (1/4)
- Contents (2/4)
- Contents (3/4)
- Contents (4/4)
- Preface (1/2)
- Preface (2/2)
- Chapter 1. Database and Technology Foundations
-
Chapter 2. Introduction to SQL:1999
- 2.1 Introduction
- 2.2 SQL History and Background
- 2.3 SQL Concepts (1/2)
- 2.3 SQL Concepts (2/2)
- 2.4 SQL Data Types (1/4)
- 2.4 SQL Data Types (2/4)
- 2.4 SQL Data Types (3/4)
- 2.4 SQL Data Types (4/4)
- 2.5 Logic and Null Values
- 2.6 Data Conversions
- 2.7 SQL Statements
- 2.8 Static Versus Dynamic Execution
- 2.9 Conforming to SQL:1999
- 2.10 Relationship to Products
- 2.11 Identifiers
- 2.12 Chapter Summary
- Chapter 3. Basic Table Creation and Data Manipulation
- Chapter 4. Basic Data Definition Language (DDL)
-
Chapter 5. Values, Basic Functions, and Expressions
- 5.1 Introduction
- 5.2 Types of SQL Values
- 5.3 Literals
- 5.4 Parameters (1/2)
- 5.4 Parameters (2/2)
- 5.5 Special Values
- 5.6 Column References and Field References (1/2)
- 5.6 Column References and Field References (2/2)
- 5.7 Some Terminology
- 5.8 Set Functions
- 5.9 Value Functions (1/2)
- 5.9 Value Functions (2/2)
- 5.10 Value Expressions (1/2)
- 5.10 Value Expressions (2/2)
- 5.11 Chapter Summary
- Chapter 6. Advanced Value Expressions: CASE, CAST, and Row Value Expressions
-
Chapter 7. Predicates
- 7.1 Introduction
- 7.2 What Is a Predicate?
- 7.3 Subqueries
- 7.4 Comparison Predicate (1/2)
- 7.4 Comparison Predicate (2/2)
- 7.5 IS NULL Predicate
- 7.6 IN Predicate
- 7.7 LIKE and SIMILAR Predicates (1/3)
- 7.7 LIKE and SIMILAR Predicates (2/3)
- 7.7 LIKE and SIMILAR Predicates (3/3)
- 7.8 EXISTS and UNIQUE Predicates
- 7.9 OVERLAPS Predicate
- 7.10 SOME, ANY, and ALL
- 7.11 MATCH Predicate
- 7.12 DISTINCT Predicate
- 7.13 Type Predicate
- 7.14 Search Conditions
- 7.15 Chapter Summary
-
Chapter 8. Working with Multiple Tables: The Relational Operators
- 8.1 Introduction
- 8.2 Join Operations: An Overview
- 8.3 Types of Join Operations (1/5)
- 8.3 Types of Join Operations (2/5)
- 8.3 Types of Join Operations (3/5)
- 8.3 Types of Join Operations (4/5)
- 8.3 Types of Join Operations (5/5)
- 8.4 The UNION Operator
- 8.5 UNION JOIN
- 8.6 The INTERSECT and EXCEPT Operators
- 8.7 Another Example
- 8.8 Chapter Summary
-
Chapter 9. Advanced SQL Query Expressions
- 9.1 Introduction
- 9.2 Query Specifications (1/4)
- 9.2 Query Specifications (2/4)
- 9.2 Query Specifications (3/4)
- 9.2 Query Specifications (4/4)
- 9.3 Functional Dependencies: Rules for Updatability (1/2)
- 9.3 Functional Dependencies: Rules for Updatability (2/2)
- 9.4 Query Expressions (1/2)
- 9.4 Query Expressions (2/2)
- 9.5 Joined Table (1/2)
- 9.5 Joined Table (2/2)
- 9.6 Grouped Tables
- 9.7 Result Data Types of Columns of UNION, EXCEPT, and INTERSECT
- 9.8 Sequence of Evaluation within Query Expression
- 9.9 Table Value Constructor
- 9.10 Subqueries
- 9.11 Table References
- 9.12 CUBE and ROLLUP (1/3)
- 9.12 CUBE and ROLLUP (2/3)
- 9.12 CUBE and ROLLUP (3/3)
- 9.13 Recursive Queries (1/3)
- 9.13 Recursive Queries (2/3)
- 9.13 Recursive Queries (3/3)
- 9.14 Chapter Summary
-
Chapter 10. Constraints, Assertions, and Referential Integrity
- 10.1 Introduction
- 10.2 Column Constraints and Table Constraints (1/3)
- 10.2 Column Constraints and Table Constraints (2/3)
- 10.2 Column Constraints and Table Constraints (3/3)
- 10.3 Assertions
- 10.4 PRIMARY KEY
- 10.5 Referential Integrity (1/3)
- 10.5 Referential Integrity (2/3)
- 10.5 Referential Integrity (3/3)
- 10.6 Multiple Cascades
- 10.7 More about Referential Integrity Constraints
- 10.8 More about Constraints and Assertions
- 10.9 Chapter Summary
- Chapter 11. Active Databases and Triggers
-
Chapter 12. Accessing SQL from the Real World
- 12.1 Introduction
- 12.2 Data Access Methods and Data Types
- 12.3 Applications Interface Mechanisms for SQL
- 12.4 Direct Invocation
- 12.5 Embedded SQL (1/4)
- 12.5 Embedded SQL (2/4)
- 12.5 Embedded SQL (3/4)
- 12.5 Embedded SQL (4/4)
- 12.6 Module Language (1/2)
- 12.6 Module Language (2/2)
- 12.7 The Impedance Mismatch
- 12.8 Other Binding Styles
- 12.9 Package Interfaces.SQL (1/2)
- 12.9 Package Interfaces.SQL (2/2)
- 12.10 Chapter Summary
- Chapter 13. Cursors
-
Chapter 14. Privileges, Users, and Security
- 14.1 Introduction
- 14.2 Users and Roles (1/2)
- 14.2 Users and Roles (2/2)
- 14.3 GRANT (1/2)
- 14.3 GRANT (2/2)
- 14.4 WITH GRANT OPTION and WITH ADMIN OPTION
- 14.5 Changing User Identifiers and Role Names
- 14.6 Other Rules
- 14.7 REVOKE
- 14.8 Additional Details of REVOKE (1/2)
- 14.8 Additional Details of REVOKE (2/2)
- 14.9 Chapter Summary
-
Chapter 15. Transaction Management
- 15.1 Introduction
- 15.2 SQL:1999 Transaction Syntax
- 15.3 SQL:1999 Isolation Levels (1/2)
- 15.3 SQL:1999 Isolation Levels (2/2)
- 15.4 Mixed DML and DDL
- 15.5 Transaction Termination
- 15.6 Transactions and Constraints
- 15.7 Savepoints—Establishment and Removal
- 15.8 Additional Transaction Termination Actions
- 15.9 Chapter Summary
- Chapter 16. Connections and Remote Database Access
-
Chapter 17. Routines and Routine Invocation (Functions and Procedures)
- 17.1 Introduction
- 17.2 Relationship of SQL:1999's Routines to SQL/PSM
- 17.3 SQL-Invoked Routines (1/3)
- 17.3 SQL-Invoked Routines (2/3)
- 17.3 SQL-Invoked Routines (3/3)
- 17.4 External Routines
- 17.5 SQL Routines
- 17.6 Limitations of SQL for Stored Routines
- 17.7 Polymorphism
- 17.8 Routine Resolution Outline
- 17.9 Chapter Summary
-
Chapter 18. Dynamic SQL
- 18.1 Introduction
- 18.2 What Is Dynamic SQL?
- 18.3 The Philosophy of Dynamic SQL
- 18.4 Outline of Dynamic SQL Processing (1/3)
- 18.4 Outline of Dynamic SQL Processing (2/3)
- 18.4 Outline of Dynamic SQL Processing (3/3)
- 18.5 The EXECUTE IMMEDIATE Statement
- 18.6 PREPARE and EXECUTE Statements
- 18.7 The DESCRIBE Statement (1/2)
- 18.7 The DESCRIBE Statement (2/2)
- 18.8 Rows, Collections, and the DESCRIBE Statement
- 18.9 The EXECUTE Statement Revisited
- 18.10 Dynamic SQL and Cursors (1/2)
- 18.10 Dynamic SQL and Cursors (2/2)
- 18.11 A Dynamic SQL Example (1/2)
- 18.11 A Dynamic SQL Example (2/2)
- 18.12 Chapter Summary
-
Chapter 19. Call-Level Interface (CLI)
- 19.1 Introduction
- 19.2 A Brief History of SQL/CLI and ODBC
- 19.3 Brief Comparison of SQL/CLI and Dynamic SQL
- 19.4 The SQL/CLI Model
- 19.5 Handles
- 19.6 Null Pointers
- 19.7 Database Connections and Implicit Connections
- 19.8 CLI Descriptor Areas Versus Dynamic Descriptor Areas (1/2)
- 19.8 CLI Descriptor Areas Versus Dynamic Descriptor Areas (2/2)
- 19.9 Statement Preparation and Execution (1/2)
- 19.9 Statement Preparation and Execution (2/2)
- 19.10 Deferred Parameters (1/2)
- 19.10 Deferred Parameters (2/2)
- 19.11 Transaction Management
- 19.12 Diagnostics Facilities
- 19.13 Metadata Access and Catalog Routines
- 19.14 CLI Routines Summary (1/3)
- 19.14 CLI Routines Summary (2/3)
- 19.14 CLI Routines Summary (3/3)
- 19.15 Annotated CLI Example
- 19.16 Chapter Summary
- Chapter 20. Diagnostics and Error Management
- Chapter 21. Internationalization Aspects of SQL:1999
-
Chapter 22. Information Schema
- 22.1 Introduction
- 22.2 Metadata, Repositories, and the INFORMATION_SCHEMA
- 22.3 DEFINITION_SCHEMA and Base Tables
- 22.4 Self-Description
- 22.5 INFORMATION_SCHEMAand Privileges
- 22.6 INFORMATION_SCHEMA Extensions
- 22.7 Identifier Representation
- 22.8 The DEFINITION_SCHEMA (1/2)
- 22.8 The DEFINITION_SCHEMA (2/2)
- 22.9 The INFORMATION_SCHEMA
- 22.10 Short-Name Views
- 22.11 Chapter Summary
- Chapter 23. A Look to the Future
- Appendix A: Designing SQL:1999 Databases
- Appendix B: An SQL:1999 Application Example
-
Appendix C: The SQL:1999 Annexes
- C.1 Introduction
- C.2 Differences between SQL-92 and SQL:1999
- C.3 Implementation-Defined and Implementation-Dependent (1/4)
- C.3 Implementation-Defined and Implementation-Dependent (2/4)
- C.3 Implementation-Defined and Implementation-Dependent (3/4)
- C.3 Implementation-Defined and Implementation-Dependent (4/4)
- C.4 Deprecated Features
- C.5 SQL:1999 Conformance Claims (1/3)
- C.5 SQL:1999 Conformance Claims (2/3)
- C.5 SQL:1999 Conformance Claims (3/3)
- C.6 Appendix Summary
- Appendix D: Relevant Standards Bodies
- Appendix E: Status Codes
- Appendix F: The SQL Standardization Process
- Index (1/10)
- Index (2/10)
- Index (3/10)
- Index (4/10)
- Index (5/10)
- Index (6/10)
- Index (7/10)
- Index (8/10)
- Index (9/10)
- Index (10/10)
- About the Authors
Product information
- Title: SQL: 1999
- Author(s):
- Release date: May 2001
- Publisher(s): Morgan Kaufmann
- ISBN: 9780080517605
You might also like
book
Beginning Microsoft® SQL Server® 2012 Programming
Get up to speed on the extensive changes to the newest release of Microsoft SQL Server …
book
Microsoft® SQL Server® 2012 Step by Step
Your hands-on, step-by-step guide to building applications with Microsoft SQL Server 2012 Teach yourself the programming …
book
Professional Microsoft® SQL Server® 2008 Administration
SQL Server 2008 represents a sizable jump forward in scalability, performance, and usability for the DBA, …
book
SQL Server MVP Deep Dives, Volume 2
SQL Server MVP Deep Dives, Volume 2 lets you learn from the best in the business—64 …