Programming Books C Java PHP Python Learn more Browse Programming Books
SQL in a Nutshell (In a Nutshell (O'Reilly)) and over one million other books are available for Amazon Kindle. Learn more
  • List Price: $44.99
  • Save: $12.50 (28%)
FREE Shipping on orders over $35.
In Stock.
Ships from and sold by
Gift-wrap available.
SQL in a Nutshell (In a N... has been added to your Cart
Condition: :
Comment: Item stored and shipped by Amazon and eligible for International and or Free 2 Day Shipping for Prime members. Solid copy with all clean and clear tetx pages for viewing. Slight bend to back cover from previous use only issue. Satisfaction guaranteed!
Access codes and supplements are not guaranteed with used items.
Sell yours for a Gift Card
We'll buy it for $4.89
Learn More
Trade in now
Have one to sell? Sell on Amazon
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See all 2 images

SQL in a Nutshell (In a Nutshell (O'Reilly)) Paperback – December 2, 2008

ISBN-13: 978-0596518844 ISBN-10: 0596518846 Edition: 3rd

Buy New
Price: $32.49
42 New from $24.62 25 Used from $12.98
Amazon Price New from Used from
"Please retry"
"Please retry"
"Please retry"
$24.62 $12.98
Free Two-Day Shipping for College Students with Amazon Student Free%20Two-Day%20Shipping%20for%20College%20Students%20with%20Amazon%20Student

$32.49 FREE Shipping on orders over $35. In Stock. Ships from and sold by Gift-wrap available.

Frequently Bought Together

SQL in a Nutshell (In a Nutshell (O'Reilly)) + SQL Cookbook (Cookbooks (O'Reilly)) + Learning SQL
Price for all three: $84.93

Buy the selected items together

Shop the new
New! Introducing the, a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

Product Details

  • Series: In a Nutshell (O'Reilly)
  • Paperback: 594 pages
  • Publisher: O'Reilly Media; 3 edition (December 2, 2008)
  • Language: English
  • ISBN-10: 0596518846
  • ISBN-13: 978-0596518844
  • Product Dimensions: 6 x 1.2 x 9 inches
  • Shipping Weight: 1.4 pounds (View shipping rates and policies)
  • Average Customer Review: 3.9 out of 5 stars  See all reviews (55 customer reviews)
  • Amazon Best Sellers Rank: #576,178 in Books (See Top 100 in Books)

Editorial Reviews Review

SQL in a Nutshell applies the classic O'Reilly "Nutshell" format to Structured Query Language (SQL), the elegant descriptive language that's used to create and manipulate stores of data. This book explains the purpose and proper syntax of hundreds of SQL statements, as defined in four major SQL implementations, and details each entry with explanatory text and illustrative examples. Perhaps best of all, authors Kevin and Daniel Kline feature MySQL in their coverage, and give it billing that's equal to that of Oracle, Microsoft SQL Server, and PostgreSQL. Their inclusion of open-source MySQL, which in most situations carries no license fee, is recognition of its growing popularity and suitability for serious database applications; also, it improves this book's appeal to Unix and Linux developers.

The majority of this slender book comprises eminently useful syntax documentation (which is in the style of Unix man pages, with bracketed options and monospace arguments) and the other information that's specific to individual statements and functions. Additionally, it includes a relatively small amount of conceptual information, such as a section on the proper use of NULL values. The material that's not statement-specific also contrasts data-type implementations of the four covered platforms--for example, readers learn that a PostgreSQL int2 value is known as a smallint in ANSI standard SQL. This is a particularly handy reference book, if you use one of the emphasized SQL implementations. --David Wall

Topics covered: Structured Query Language (SQL), as implemented in Oracle, Microsoft SQL Server, MySQL, and PostgreSQL, as well as in ANSI standard SQL (SQL92 and SQL99). After an introduction to data types and relational database fundamentals (the latter is not emphasized), the authors document SQL statements and functions, one by one and alphabetically. They take care to point out differences among the four implementations. --This text refers to an out of print or unavailable edition of this title.

Book Description

A Desktop Quick Reference Guide

Customer Reviews

This book offers a great cross-platform syntax reference for SQL.
Data Guy
This doesn't make the book useless to those using databases other than the four covered, it just means that not everything will work exactly the way the book says.
Stephen Chapman
For every statement it shows you what the syntax should be according to the SQL99 Standard and how Oracle, MS-SQL Server, MySQL and PostgreSQL implement them.
Michael Marr

Most Helpful Customer Reviews

69 of 71 people found the following review helpful By Nathan Eady on May 8, 2003
Format: Paperback
This book is designed as a reference -- the book that you keep
near your workstation after you learn the basics, because you
haven't got everything memorised yet. It's great for that. I
refer to it when I have a question.
But actually I picked up this book with no prior knowledge of
SQL (except that I knew it was for doing database stuff) and
learned enough to get started in a couple of days. The intro
is great for that.
The great thing about this book is that it covers the four
major SQL implementations in a relatively unbiased fashion.
This is nice because if you switch from one to another you
don't have to go looking for a new book. (Otherwise, you
would; as you will see from reading this book, the various
implementations differ considerably and also differ from
the unimplemented standard, which the book also covers.)
This book is not, and is not intended to be, a tutorial for
people who are utterly unfamiliar with the very concept of
a database, but it's okay to be utterly unfamiliar with SQL.
This book also is not a strategy guide for how to plan and
organise your database; this is an _implementation_ book.
As such, it doesn't cover things like deciding which data
to put in which table, when to create another table and
when to create an entirely separate database, or that sort
of thing. What it does tell you is what query syntax you
need to create and interact with your database, your tables,
and the data in your tables. It also explains datatypes,
because they vary considerably between the different SQL
implementations, and table types and the various attributes
(indeces and whatnot).
Additionally, this book is not a security guide. It does
include information about permissions, but only in terms of
the syntax used, not in terms of strategy.
1 Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
41 of 46 people found the following review helpful By C. Allwein on January 9, 2001
Format: Paperback
I have to question whether any of the other reviewers even looked at the table of contents before purchasing this book:
Chapter 1. SQL, Vendor Implementations, and Some History - a general overview of SQL and where it comes from;
Chapter 2. Foundational Concepts - The general theory behind how a sql works;
Chapter 3. SQL Statements Command Reference - "Quick SQL Command Reference";
Chapter 4. SQL Functions - A standard function reference and vendor extensions;
Chapter 5. Unimplemented SQL99 Commands - commands in the sql standard which aren't implemented by vendors (MS, Oracle);
So as to what it says it covers, it does it quite well. Already being quite familiar with SQl, I still found this book to be useful both as a quick reference to commands as well as for a deeper understanding into how SQL works. This book makes an excellent companion to Transact-SQL Programming, also by Oreilly. If you need a complete SQL reference, get Transact-SQL. If you're looking for a background and introduction to SQL, get this book.
1 Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
18 of 19 people found the following review helpful By G. Hamer on October 11, 2004
Format: Paperback
Expanded 2nd Edition (more than 3x larger!)

fyi ... Amazon is including here reviews from both 1st and current 2nd edition. 1st Edition was a "slim" 224 pages (released December 1, 2000 per Amazon). 2nd Edition is 800 pages (released September 27, 2004 per Amazon). From 224 to 800 pages ... hmmm, quite a change!

Per, current 2nd edition covers commercial RDBMS (Oracle, DB2, and Microsoft SQL Server), and open source implementations (PostgreSQL, and MySQL). fyi, 1st edition did not cover DB2.

2nd Edition is updated to use the most current ANSI standard, SQL2003, as the baseline in comparing each of the RDBMS.

Sample chapter available at Chapter 4, SQL Functions. As PDF, 28 pages.
1 Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
25 of 28 people found the following review helpful By A Customer on March 28, 2001
Format: Paperback
Contrary to several reviewers, this book is *not* well-suited to its purpose, especially compared to O'Reilly's usual high standards. You often can't find things quickly, and the information is often just not there. This is particularly true of the book's main claim to fame, the myriad of small differences between database products. Some examples: (1) The book explains that some databases use "!=" instead of the standard SQL not-equal operator, "<>". Which databases? Do they support both operators, or just "!="? The book doesn't say. (2a) The book doesn't tell you that MySQL doesn't support subqueries in SELECT statements -- even though there's a subsection on "MySQL Syntax and Variations" for SELECT statements. (And yes, I do need to know -- I'm working on a software product that supports every database in the book plus several others.) (2b) The index has no entries for subqueries under any conceivable heading: queries, nested queries, subqueries, or SELECT. So you can spend quite a long time *trying* to find out which databases support subqueries. (Most do.) (3) The table of contents has a glaring typo, that makes you wonder what else got past the proofreaders and fact-checkers. Chapter 3, "SQL Statements Command Reference" doesn't have sub-headings for individual commands or groups of commands ... except for one: "DROP Statements", which are supposedly discussed for 70 pages, a third of the book. If O'Reilly was in such a rush to get the book out that they didn't notice this, how can you have confidence in the book's accuracy?
1 Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again

Most Recent Customer Reviews

More About the Authors

Discover books, learn about writers, read author blogs, and more.

What Other Items Do Customers Buy After Viewing This Item?

Set up an Amazon Giveaway

Amazon Giveaway allows you to run promotional giveaways in order to create buzz, reward your audience, and attract new followers and customers. Learn more
SQL in a Nutshell (In a Nutshell (O'Reilly))
This item: SQL in a Nutshell (In a Nutshell (O'Reilly))
Price: $44.99 $32.49
Ships from and sold by