SQL Cookbook


You know the rudiments of the SQL query language, yet you feel you aren't taking full advantage of SQL's expressive power. You'd like to learn how to do more work with SQL inside the database before pushing data across the network to your applications. You'd like to take your SQL skills to the next level.

Let's face it, SQL is a deceptively simple language to learn, and many database developers never go far beyond the simple statement: SELECT columns FROM table WHERE conditions. But there is so much more you can do with the language. In the SQL Cookbook, experienced SQL developer Anthony Molinaro shares his favorite SQL techniques and features. You'll learn about:

  • Window functions, arguably the most significant enhancement to SQL in the past decade. If you're not using these, you're missing out
  • Powerful, database-specific features such as SQL Server's PIVOT and UNPIVOT operators, Oracle's MODEL clause, and PostgreSQL's very useful GENERATE_SERIES function
  • Pivoting rows into columns, reverse-pivoting columns into rows, using pivoting to facilitate inter-row calculations, and double-pivoting a result set
  • Bucketization, and why you should never use that term in Brooklyn.
  • How to create histograms, summarize data into buckets, perform aggregations over a moving range of values, generate running-totals and subtotals, and other advanced, data warehousing techniques
  • The technique of walking a string, which allows you to use SQL to parse through the characters, words, or delimited elements of a string

Written in O'Reilly's popular Problem/Solution/Discussion style, the SQL Cookbook is sure to please. Anthony's credo is: "When it comes down to it, we all go to work, we all have bills to pay, and we all want to go home at a reasonable time and enjoy what's still available of our days." The SQL Cookbook moves quickly from problem to solution, saving you time each step of the way.

For anyone writing SQL in a professional environment, this book presents a compendium of solutions that readers can immediately apply to commonly-faced, real-world data query and manipulation problems.

Author(s): Anthony Molinaro  

ISBN 10: 0596009763
ISBN 13: 9780596009762
Pages: 636
Find this book on Amazon

 

This books is in the following lists (3)



Related YouTube Videos (add a video)

Add the YouTube URL below and submit:

To add a YouTube video, please copy the video's URL on YouTube and submit by clicking "Add".
The URL should look something like this: https://www.youtube.com/watch?v=CXQdBuuanI8
How to copy the videos URL from YouTube

No video yet, want to add one?

Related Articles (add an article)

Add an article URL below and submit:

To add an article, please paste the article's URL and submit by clicking "Add".
Below is an example of a valid URL:
How to copy and paste a webpage URL

No article found, do you know any related to this book?

Report an error with this book