SQL Pocket Guide

SQL Pocket Guide

by Jonathan Gennick

Paperback(Third Edition)

$19.99
View All Available Formats & Editions
Choose Expedited Shipping at checkout for delivery by Wednesday, June 23

Overview

If you're a programmer or database administrator who uses SQL in your day-to-day work, this popular pocket guide is the ideal on-the-job reference. You'll find many examples that address the language's complexity, along with key aspects of SQL used in IBM DB2 Release 9.7, MySQL 5.1, Oracle Database 11g Release 2, PostgreSQL 9.0, and Microsoft SQL Server 2008 Release 2.

SQL Pocket Guide describes how these database systems implement SQL syntax for querying, managing transactions, and making changes to data. It also shows how the systems use SQL functions, regular expression syntax, and type conversion functions and formats.

All example SQL statements in this book execute against a set of tables, with data that you can quickly download. The third edition covers important database changes, including:

  • Oracle's support of the recursive WITH syntax, and addition of PIVOT and UNPIVOT operators
  • Functions new to Oracle, such as LISTAGG, NTH_VALUE, and more
  • PostgreSQL’s support of recursive WITH and some window functions
  • DB2 syntax and datatypes, some compatible with Oracle
  • MySQL features such as the TIMESTAMP type and the TO_SECONDS function

Product Details

ISBN-13: 9781449394097
Publisher: O'Reilly Media, Incorporated
Publication date: 12/01/2010
Edition description: Third Edition
Pages: 196
Sales rank: 437,949
Product dimensions: 4.30(w) x 6.90(h) x 0.60(d)

About the Author

Jonathan Gennick is an SQL aficionado who writes extensively on the SQL language and other database topics. He is the author of several books, and also a number of articles in Oracle Magazine. He is currently a book editor focusing on database titles, primarily involving Oracle and SQL Server.

Table of Contents

Chapter 1: SQL Pocket Guide;
1.1 Introduction;
1.2 Analytic Functions;
1.3 CASE Expressions: Simple;
1.4 CASE Expressions: Searched;
1.5 CAST Function;
1.6 CONNECT BY Queries;
1.7 Data Type Conversion;
1.8 Data Types: Binary Integer;
1.9 Data Types: Character String;
1.10 Data Types: Datetime;
1.11 Data Types: Decimal;
1.12 Datetime Conversions: DB2;
1.13 Datetime Conversions: MySQL;
1.14 Datetime Conversions: Oracle;
1.15 Datetime Conversions: PostgreSQL;
1.16 Datetime Conversions: SQL Server;
1.17 Datetime Functions: DB2;
1.18 Datetime Functions: MySQL;
1.19 Datetime Functions: Oracle;
1.20 Datetime Functions: PostgreSQL;
1.21 Datetime Functions: SQL Server;
1.22 Deleting Data;
1.23 EXTRACT Function;
1.24 GREATEST;
1.25 Grouping and Summarizing;
1.26 Hierarchical Queries;
1.27 Indexes, Creating;
1.28 Indexes, Removing;
1.29 Inserting Data;
1.30 Joining Tables;
1.31 LEAST;
1.32 Literals;
1.33 Merging Data;
1.34 Nulls;
1.35 Numeric Conversions: DB2;
1.36 Numeric Conversions: MySQL;
1.37 Numeric Conversions: Oracle;
1.38 Numeric Conversions: PostgreSQL;
1.39 Numeric Conversions: SQL Server;
1.40 Numeric/Math Functions;
1.41 OLAP Functions;
1.42 Pivoting and Unpivoting;
1.43 Predicates;
1.44 Recursive Queries;
1.45 Regular Expressions;
1.46 Selecting Data;
1.47 String Functions;
1.48 Subqueries;
1.49 Tables, Creating;
1.50 Tables, Dropping;
1.51 Tables, Modifying;
1.52 Transaction Management;
1.53 Union Queries;
1.54 Updating Data;
1.55 Window Functions;

Customer Reviews