Join Amazon Prime and ship Two-Day for free and Overnight for $3.99. Already a member? Sign in.
Transact-SQL Cookbook and over 300,000 other books are available for Amazon Kindle – Amazon’s new wireless reading device. Learn more

 

or
Sign in to turn on 1-Click ordering.
 
 
More Buying Choices
43 used & new from $13.95

Have one to sell? Sell yours here
 
   
Transact-SQL Cookbook
 
 
Start reading Transact-SQL Cookbook on your Kindle in under a minute.

Don’t have a Kindle? Get yours here.
 
  

Transact-SQL Cookbook (Paperback)

by Ales Spetic (Author), Jonathan Gennick (Author)
Key Phrases: missing term papers, financial median, nonaggregated columns, Alex Jan, Alex Feb, Temporal Data (more...)
3.4 out of 5 stars See all reviews (14 customer reviews)

List Price: $34.95
Price: $31.35 & this item ships for FREE with Super Saver Shipping. Details
You Save: $3.60 (10%)
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Only 2 left in stock--order soon (more on the way).

Want it delivered Tuesday, July 14? Choose One-Day Shipping at checkout. Details
26 new from $27.20 17 used from $13.95
Also Available in: List Price: Our Price: Other Offers:
Kindle Edition (Kindle Book) $15.39
Like this book? Find similar titles from O'Reilly and Partners in our O'Reilly Bookstore.

Frequently Bought Together

Customers buy this book with SQL Cookbook (Cookbooks (O'Reilly)) by Anthony Molinaro

Transact-SQL Cookbook + SQL Cookbook (Cookbooks (O'Reilly))
  • This item: Transact-SQL Cookbook by Ales Spetic

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • SQL Cookbook (Cookbooks (O'Reilly)) by Anthony Molinaro

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details


Customers Who Bought This Item Also Bought

Transact-SQL Programming

Transact-SQL Programming

by Lee Gould
Programming SQL Server 2005

Programming SQL Server 2005

by Bill Hamilton
4.1 out of 5 stars (13)  $34.64
Transact-SQL Desk Reference: For Microsoft SQL Server

Transact-SQL Desk Reference: For Microsoft SQL Server

by Deac Lancaster
3.8 out of 5 stars (5)  $30.89
SYBASE TRANSACT SQL GUIDELINES BEST PRACTICES

SYBASE TRANSACT SQL GUIDELINES BEST PRACTICES

by Mich Talebzadeh
4.5 out of 5 stars (15)  $43.15
The Guru's Guide to Transact-SQL

The Guru's Guide to Transact-SQL

by Ken Henderson
4.7 out of 5 stars (236)  $45.01
Explore similar items

Editorial Reviews

Product Description
This unique cookbook contains a wealth of solutions to problems that SQL programmers face all the time. The recipes inside range from how to perform simple tasks, like importing external data, to ways of handling issues that are more complicated, like set algebra. Authors Ales Spetic and Jonathan Gennick, two authorities with extensive database and SQL programming experience, follow each recipe with a discussion explaining the logic and concepts underlying the solution. Topics in the cookbook include Audit logging, Hierarchies, Importing data, Sets, Statistics, Temporal data, and Data Structures. Whether you plan to use the cookbook's recipes directly, as a source of ideas, or as a way to learn a little more about SQL and what you can do with it, the Transact-SQL Cookbook will become an essential part of your library.

From the Author
If you have recently learned SQL, then you know what the basic statements are all about. What you need to learn next is how to "think SQL" in order to creatively apply it to the programming problems you encounter in your daily work. This is a hard thing to "teach"; the creative application of SQL is really something you need to learn by example. That's the whole point of this book, to provide examples of SQL being used creatively, and in ways that aren't immediately obvious, to solve everyday problems. You'll be able to apply our patterns to your own work, and you'll no doubt be inspired to discover even more creative solutions of your own. This book isn't just for those who are new to SQL. Even if you're an experienced SQL programmer, you probably haven't seen it all, and we think you'll discover at least one new technique in this book.

See all Editorial Reviews

Product Details

  • Paperback: 302 pages
  • Publisher: O'Reilly Media, Inc. (March 19, 2002)
  • Language: English
  • ISBN-10: 1565927567
  • ISBN-13: 978-1565927568
  • Product Dimensions: 9.3 x 7.1 x 0.7 inches
  • Shipping Weight: 1.1 pounds (View shipping rates and policies)
  • Average Customer Review: 3.4 out of 5 stars See all reviews (14 customer reviews)
  • Amazon.com Sales Rank: #516,492 in Books (See Bestsellers in Books)

Inside This Book (learn more)

What Do Customers Ultimately Buy After Viewing This Item?


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
Check the boxes next to the tags you consider relevant or enter your own tags in the field below.
(1)

Your tags: Add your first tag
 
Help others find this product — tag it for Amazon search
No one has tagged this product for Amazon search yet. Why not be the first to suggest a search for which it should appear?

 

Customer Reviews

14 Reviews
5 star:
 (7)
4 star:
 (1)
3 star:
 (1)
2 star:    (0)
1 star:
 (5)
 
 
 
 
 
Average Customer Review
3.4 out of 5 stars (14 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
18 of 18 people found the following review helpful:
3.0 out of 5 stars Good (but basic), practical text, April 5, 2002
By Nicholas Bennett (Albuquerque, NM United States) - See all my reviews
Rather than a real-world "cookbook", ostensibly targeted to database professionals who want to avoid reinventing the wheel, this book would be better positioned as a companion to an introductory text on SQL (e.g. for a class on SQL, where the class laboratory work employs SQL Server).

One or two of the chapters do cover problems which baffle a lot of experienced SQL programmers with whom I have worked; a good example is the chapter on the implementation of hierarchical data models.

There is some minimal attention paid to performance implications of alternative query formulations, but very little useful information on practical database and query tuning.

The practical examples are generally good for building the necessary context for the various implementations, but there are some clear gaps in the authors' understanding of the underlying business problems and the conceptual solution techniques. Also, there are some flat-out errors: for example, the explanation (and the implementation) of exponential averaging (more commonly referred to as smoothing) is simply incorrect.

All in all, I would recommend this to someone who is just learning SQL, and is having trouble "getting their head" around how it would be used in practice. For someone already working in the field, an online subscription to SQL Server magazine (giving access to all of the source code for the articles) would be a better investment.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
11 of 12 people found the following review helpful:
5.0 out of 5 stars A true book for programmers, April 10, 2002
By "hans_waldde" (Berlin, Germany) - See all my reviews
This book is everything I was looking for. I bought it on my recent trip to United States. I had a chance to read it on the long flight back to Europe.

I needed a clear and concise book to help me with my MS SQL programming problems. I think I found it. It clearly explains logic behind the code and examples. Other books often mix together a lot of other topics, but not this one. The text is only about coding. No administration or fine-tuning. I think it's a very good book for programmers.

If your interests include administration and other topics for DBA's, this book will be of no help for you. But that's the strength of the book. Just a few hundred pages, but no page is wasted on issues not directly related to coding.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
5 of 5 people found the following review helpful:
5.0 out of 5 stars Best Buy!, May 28, 2002
By A Customer
No DBA nonsense, just plain programming. Great stuff, clear explanations, excellent code!!! It's an incredible book that can really help programmers get up to speed quickly.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

5.0 out of 5 stars A Treasure
Read the negative reveiws and bought the book anyway. Still can't figure out what it was that other reviewers found objectionable... Read more
Published on February 12, 2006 by C. Hudson

5.0 out of 5 stars A desktop must SQL SERVER 2000 and Transact SQL
I cannot say enough great things about this book! I'm a SQL Server developer and have used many forms of the logic presented from this book in many of my daily routines. Read more
Published on November 4, 2005 by M. Beirn

1.0 out of 5 stars A bad book
Bought this without reading the reviews. Big mistake. Full of terribly simple examples and bad English. Not worth the time at all. Read more
Published on July 21, 2002 by John Gibbs

1.0 out of 5 stars Terrible, just terrible
This book isn't worth the paper its printed on. The code is all stuff from magazines and other books. I see a lot of code from Henderson's book here. Read more
Published on July 11, 2002 by Tom Dunn

5.0 out of 5 stars A very practical guide to T-SQL programming!
This is a very concise and to-the-point book. It assumes that the user has a basic understanding of T-SQL. Read more
Published on June 29, 2002 by NV Kondreddi

4.0 out of 5 stars Good Reference
Information on performing statistics calculations using TSQL is very rare. Using this book, I was able to write a couple of User-Defined Functions that provide both Confidence... Read more
Published on June 17, 2002

1.0 out of 5 stars Terrible waste of money
Almost everything in this book can be found in the books on-line. This is like a printed version of them. If you need a printed version of the bol, get this book.
Published on May 12, 2002 by Bob Lee

5.0 out of 5 stars a real life saver
I've read this book and I'm recommending it to all my friends. This book contains concise explanations of many important topics. Read more
Published on May 1, 2002 by Morgan Lee

1.0 out of 5 stars More beginner's book than cookbook
When they called this a cookbook, I was expecting lots of advanced sample code, especially given that the book comes from O'Reilly. I could not be more disappointed. Read more
Published on April 13, 2002 by Barb Tabor

5.0 out of 5 stars This book is great!
The chapters in the book are laid out properly. I recommend this book to anyone who wants to further expand their knowledge. There are some errors in the book. Read more
Published on April 10, 2002 by Austin McMillan

Only search this product's reviews



Customer Discussions

 Beta (What's this?)
New! See all customer communities, and bookmark your communities to keep track of them.
This product's forum (0 discussions)
  Discussion Replies Latest Post
  No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
  [Cancel]

   


Product Information from the Amapedia Community

Beta (What's this?)


So You'd Like to...


Look for Similar Items by Category


Value Center Deals

Home Improvement Value Center
Let spectacular savings of up to 50% in the Home Improvement Value Center help motivate you to organize the closet, garage, and everything else.

Shop the Value Center

 

Best Books of 2008

Best of 2008
Find our top 100 editors' picks as well as customers' favorites in dozens of categories in our Best Books of 2008 Store.
 

Buy Three Books, Get a Fourth Free

4-for-3 Books
Order any four eligible books under $10 and get the lowest-price book free in our 4-for-3 Books Store. See more details.
 

Best Books

Best of the Month
See our editors' picks and more of the best new books on our Best of the Month page.
 

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Where's My Stuff?

Shipping & Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.

Look to the right column to find helpful suggestions for your shopping session.

Continue shopping: Top Sellers

Conditions of Use | Privacy Notice © 1996-2009, Amazon.com, Inc. or its affiliates