did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9780596526887

SQL

by
  • ISBN13:

    9780596526887

  • ISBN10:

    0596526881

  • Edition: 2nd
  • Format: Paperback
  • Copyright: 2006-04-30
  • Publisher: Oreilly & Associates Inc
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $14.99 Save up to $1.50
  • Digital
    $13.49
    Add to Cart

    DURATION
    PRICE

Supplemental Materials

What is included with this book?

Summary

Now available in an updated second edition, our very popular "SQL Pocket Guide" is a major help to programmers who use SQL in their day-to-day work. Not just an endless collection of syntax diagrams, this small guide addresses the language's complexity head on and leads by example. The information in this edition is updated to reflect the latest versions of Oracle Database 10g, Release 2; the free Oracle Database 10g Express Edition (XE); Microsoft SQL Server 2005; MySQL 5; and IBM DB2 8.2. There is also added coverage of the PostreSQL 8.1 database. The "SQL Pocket Guide" is a concise reference to frequently used SQL statements and commonly used SQL functions.

Author Biography

Jonathan Gennick is an O'Reilly Media, Inc. editor specializing in database and programming titles. He writes extensively on database topics, and is the author of such successful books as: Oracle SQLPlus: The Definitive Guide, Oracle SQLPlus Pocket Reference, and Oracle SQL*Loader: The Definitive Guide. Jonathan contributes regularly to Oracle Magazine, and frequently explores interesting SQL topics on his own website, http://gennick.com. Jonathan is also a member of The Oak Table Network (http://www.oaktable.net), a group of Oracle experts known for their scientific approach to administering and developing Oracle based systems.

Jonathan got his start with relational database systems in 1990, first working with Ingres, and later with Digital's Rdb software. During that period he developed a fondness for SQL, and for the challenge of applying SQL creatively in ways that leveraged it's set-oriented capabilities.

In 1994 Jonathan made the leap to Oracle, and is now often found writing about it. Recent projects include Oracle SQLLoader (O'Reilly Media, Inc., 2001); Oracle SQLPlus Pocket Reference (O'Reilly Media, Inc., 2000); Oracle SQL*Plus: The Definitive Guide (O'Reilly Media, Inc., 1999); More recently, Jonathan has made forays into other database products, coauthoring Transact-SQL Cookbook (O'Reilly Media, Inc., 2002) and editing Practical PostgreSQL (O'Reilly Media, Inc., 2002).

Table of Contents

Introductionp. 1
Organization of This Bookp. 2
Feedback Needed!p. 2
Conventionsp. 3
Acknowledgmentsp. 4
Example Datap. 4
Analytic Functionsp. 6
CASE Expressionsp. 6
Simple CASE Expressionsp. 6
Searched CASE Expressionsp. 6
Datatypesp. 7
Character String Typesp. 7
Decimal Typesp. 8
Binary Integer Typesp. 8
Datetime Typesp. 9
Dataype Conversionp. 11
Standard CAST Functionp. 1
Standard EXTRACT Functionp. 12
Datetime Conversions (Oracle)p. 12
Numeric Conversions (Oracle)p. 16
Datetime Conversions (DB2)p. 17
Numeric Conversions (DB2)p. 20
Datetime Conversions (SQL Server)p. 21
Numeric Conversions (SQL Server)p. 25
Datetime Conversions (MySQL)p. 26
Numeric Conversions (MySQL)p. 30
Datetime Conversions (PostgreSQL)p. 31
Numeric Conversions (PostgreSQL)p. 33
Deleting Datap. 35
Deleting in Order (MySQL)p. 35
Deleting All Rowsp. 36
Deleting from Views and Subqueriesp. 37
Returning Deleted Data (Oracle, DB2)p. 37
Double-FROM (SQL Server)p. 38
Functionsp. 39
Datetime Functions (Oracle)p. 39
Datetime Functions (DB2)p. 42
Datetime Functions (SQL Server)p. 43
Datetime Functions (MySQL)p. 44
Datetime Functions (PostgreSQL)p. 45
Numeric and Math Functions (All Platforms)p. 48
Trigonometric Functions (All Platforms)p. 50
String Functionsp. 50
Greatest and Least (Oracle, PostgreSQL)p. 55
Grouping and Summarizingp. 56
Aggregate Functionsp. 56
Group byp. 57
Useful Group by Techniquesp. 59
Havingp. 60
Group by Extensions (Oracle, DB2)p. 61
Group by Extensions (SQL Server)p. 64
Hierarchical Queriesp. 65
Recursive With (SQL Server, DB2)p. 66
Connect by (Oracle)p. 68
Indexes, Creatingp. 74
Indexes, Removingp. 74
Inserting Datap. 75
Single-Row Insertsp. 75
Multi-Row Inserts (DB2, MySQL)p. 76
Insert Targetsp. 76
Subquery Insertsp. 76
Returning Inserted Values (Oracle, DB2)p. 77
Multi-Table Inserts (Oracle)p. 78
Joining Tablesp. 80
The Concept of a Joinp. 80
Cross Joinsp. 81
Inner Joinsp. 82
The Using Clause (Oracle, MySQL, PostgreSQL)p. 83
Natural Joins (Oracle, MySQL, PostgreSQL)p. 84
Non-Equi-Joinsp. 85
Outer Joinsp. 86
Literalsp. 89
Text Literalsp. 90
Numeric Literalsp. 92
Datetime Literals (Oracle, MySQL, PostgreSQL)p. 92
Datetime Interval Literalsp. 93
Merging Data (Oracle, DB2)p. 93
Nullsp. 96
Predicates for Nullsp. 96
Using CASE with Nullsp. 96
Using the Coalesce Functionp. 97
Functions for Nulls (Oracle)p. 97
Functions for Nulls (DB2)p. 98
Functions for Nulls (SQL Server)p. 98
Functions for Nulls (MySQL)p. 99
Functions for Nulls (PostgreSQL)p. 100
OLAP Functionsp. 100
Predicatesp. 100
Exists Predicatesp. 101
In Predicatesp. 102
Between Predicatesp. 102
Like Predicatesp. 103
Recursive Queriesp. 104
Regular Expressionsp. 104
Regular Expressions (Oracle)p. 104
Regular Expressions (SQL Server)p. 108
Regular Expressions (MySQL)p. 108
Regular Expressions (PostgreSQL)p. 110
Selecting Datap. 115
The Select Clausep. 115
All and Distinctp. 120
The From Clausep. 121
The Where Clausep. 124
The Group by Clausep. 124
The Having Clausep. 124
The Order by Clausep. 125
Subqueriesp. 126
The With Clause (Oracle, SQL Server, DB2)p. 127
Tables, Creatingp. 130
Creating a Table (Oracle)p. 130
Creating a Table (DB2)p. 132
Creating a Table (SQL Server)p. 133
Creating a Table (MySQL)p. 133
Creating a Table (PostgreSQL)p. 134
Tables, Modifyingp. 135
Modifying a Table (Oracle)p. 135
Modifying a Table (DB2)p. 136
Modifying a Table (SQL Server)p. 137
Modifying a Table (MySQL)p. 138
Modifying a Table (PostgreSQL)p. 139
Tables, Removingp. 140
Transaction Managementp. 141
Autocommit Mode (SQL Server, MySQL, PostgreSQL)p. 141
Starting a Transactionp. 142
Ending a Transactionp. 146
Aborting a Transactionp. 147
Aborting to a Transaction Savepointp. 148
Union Queriesp. 148
Union and Union Allp. 149
Order by in Union Queriesp. 150
Names and Datatypes in a Unionp. 150
Order of Evaluationp. 151
Except (or Minus)p. 152
Intersectp. 153
Updating Datap. 155
Simple Updatesp. 155
New Values from a Subqueryp. 156
Updating Views and Subqueriesp. 157
Update From Clause (SQL Server, PostgreSQL)p. 157
Returning Updated Data (Oracle, DB2)p. 158
Window Functionsp. 158
Defining a Summary Window (Oracle, DB2, SQL Server)p. 159
Ordering and Ranking Within a Window (Oracle, DB2, SQL Server)p. 160
Comparing Values Across Rows (Oracle)p. 162
Summarizing over a Moving Window (Oracle, DB2)p. 164
Window Function Syntax (Oracle)p. 164
Window Function Syntax (DB2)p. 165
Window Function Evaluation and Placementp. 166
Indexp. 167
Table of Contents provided by Ingram. All Rights Reserved.

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program