A Guide to the SQL Standard: A User's Guide to the Standard Relational Language SQL

(Most chapters begin with "Introduction".) I. INTRODUCTION. 1. Why Sql is Important. Background. Is a Standard Desirable? 2. An Overview of Sql. Introduction. Data Definition. Data Manipulation. Cursor Operations. Views. Security and Integrity. Recovery and Concurrency. Schemas and Catalogs. Sessions and Connections. II. Some Preliminaries. 3. Basic Language Elements. SQL Language Characters. Tokens and Separators. Key Words. Identifiers and Names. Scope of Names. Notation. 4. Catalogs and Schemas. The SQL-Environment. Catalogs. Schemas. 5. Connections, Sessions, and Transactions. SQL-Agents SQL-Connections SQL-Sessions. SQL-Transactions. 6. Binding Styles. Introduction. The Module Language. Embedded Sql. Direct Sql. III. Data Definition and Manipulation. 7. Scalar Objects, Operators, and Expressions. Introduction. Data Types. Literals. Scalar Operators and Functions. Aggregate Functions. Assignments and Comparisons. 8. Data Definition: Domains and Base Tables. Introduction. Domains. Base Tables. 9. Data Manipulation: Noncursor Operations. Introduction. Single-Row SELECT. Insert. Searched Update. Searched Delete. 10. Data Manipulation: Cursor Operations. Introduction. Cursors. Cursor-Based Manipulation Statements. A Comprehensive Example (Module Version). A Comprehensive Example (Embedded SQL Version). 11. Table Expressions. Introduction. Join Expressions. Table References. Unions, Differences, and Intersections. Table Primaries. Select Expressions. Derived Table Column Names. 12. Conditional Expressions. Introduction. General Remarks. Comparison Conditions. BETWEEN and LIKE Conditions. IN and MATCH Conditions. ALL-Or-ANY Conditions. EXISTS Conditions. UNIQUE Conditions. A Final Remark. 13. Views. Introduction. Data Definition Operations. Data Manipulation Operations. The Check Option. IV. DATA CONTROL. 14. Integrity. Introduction. Domain Constraints. General Constraints. Base Table and Column Constraints. Foreign Keys. Deferred Constraint Checking. 15. Security. Introduction. Authorization Identifiers. Privileges and Access Rules. GRANT and REVOKE. The Grant Option. RESTRICT Vs CASCADE. V. ADVANCED TOPICS. 16 Missing Information and Nulls. Introduction. Effect of Nulls on Scalar Expressions. Effect of Nulls on Conditional Expressions. Effect of Nulls on Table Expressions. Effect of Nulls on Integrity Constraints. A Recommendation. 17. Dates and Times. Introduction. Data Types. Literals. Time Zones. Data Conversion. Scalar Operators and Functions. Assignments and Comparisons. 18. Temporary Tables. Introduction. Type 1: "Declared" Temporary Tables. Types 2 and 3: "Created" Temporary Tables. 19. Character Data. Introduction. Properties of Character Strings. Character Sets and Collations. Data Types. Literals. Scalar Operators and Functions. Assignments and Comparisons. Character Sets For Identifiers. 20. Dynamic Sql. Introduction. What is The Problem? Statement Preparation and Execution. SQL Descriptor Areas. Cursor Operations. Session Defaults. 21. Information Schemas. Introduction. Information Schema Tables. 22. Exception Handling. Status Codes. The Diagnostics Area. 23. Call-Level Interface. Introduction. What is The Problem? CLI Routines and Parameters. CLI Resources and Related Matters. Statement Preparation and Execution. CLI Descriptor Areas. Placeholders. Retrieval Operations. Exception Handling. A Sample "SQLCLIH" File. A Sample CLI Application. APPENDIXES. A. An Sql Grammar. Introduction. Sessions, Connections, and Transactions. Data Definition. Modules. Data Manipulation. Table Expressions. Conditional Expressions. Constraints. Dynamic Sql. Scalar Expressions. Get Diagnostics. Miscellaneous. B. Language Levels and Conformance. Introduction. Intermediate Sql. Entry Sql. SQL Flagger. C. Sql/92 Vs Sql/89. Introduction. Extensions. Incompatibilities. Deprecated Features. D. Some Outstanding Issues. Introduction. The Issues. E. Persistent Stored Modules. Introduction. Overview. Routines, Modules, and Schemas. Type Precedence. Subject Routine Determination. SQL Control Statements. Exception Handling. External Routines. Miscellaneous Topics. F. An Overview of Sql3. Introduction. Data Definition and Manipulation. Functions and Operators. Integrity. Security. Transactions. G. References and Bibliography. 0201964260T04062001