๐”– Scriptorium
โœฆ   LIBER   โœฆ

๐Ÿ“

SQL Cookbook (Cookbooks (O'Reilly))

โœ Scribed by Anthony Molinaro


Publisher
O'Reilly and Associates
Year
2006
Tongue
English
Leaves
128
Edition
1
Category
Library

โฌ‡  Acquire This Volume

No coin nor oath required. For personal study only.

โœฆ Synopsis


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.

โœฆ Table of Contents


  1. Working with Ranges
    1.1. Locating a Range of Consecutive Values
    1.2. Finding Differences Between Rows in the Same Group or Partition
    1.3. Locating the Beginning and End of a Range of Consecutive Values
    1.4. Filling in Missing Values in a Range of Values
    1.5. Generating Consecutive Numeric Values
  2. Advanced Searching
    2.1. Paginating Through a Result Set
    2.2. Skipping n Rows from a Table
    2.3. Incorporating OR Logic when Using Outer Joins
    2.4. Determining Which Rows Are Reciprocals
    2.5. Selecting the Top n Records
    2.6. Finding Records with the Highest and Lowest Values
    2.7. Investigating Future Rows
    2.8. Shifting Row Values
    2.9. Ranking Results
    2.10. Suppressing Duplicates
    2.11. Finding Knight Values
    2.12. Generating Simple Forecasts
  3. Hierarchical Queries
    3.1. Expressing a Parent-Child Relationship
    3.2. Expressing a Child-Parent-Grandparent Relationship
    3.3. Creating a Hierarchical View of a Table
    3.4. Finding All Child Rows for a Given Parent Row
    3.5. Determining Which Rows Are Leaf, Branch, or Root Nodes

๐Ÿ“œ SIMILAR VOLUMES


C++ Cookbook (Cookbooks (O'Reilly))
โœ D. Ryan Stephens, Christopher Diggins, Jonathan Turkanis, Jeff Cogswell ๐Ÿ“‚ Library ๐Ÿ“… 2005 ๐Ÿ› O'Reilly Media ๐ŸŒ English

Im a freshman in college and just finished my second c++ programming course, this book was my best friend. It gives you plenty of ways to do a given task and covers a broad range of topics. Because it covers a broad range of topics, even if a specific "recipe" doesn't do exactly what you want, the

C++ Cookbook (Cookbooks (O'Reilly))
โœ D. Ryan Stephens, Christopher Diggins, Jonathan Turkanis, Jeff Cogswell ๐Ÿ“‚ Library ๐Ÿ“… 2005 ๐Ÿ› O'Reilly Media ๐ŸŒ English

Im a freshman in college and just finished my second c++ programming course, this book was my best friend. It gives you plenty of ways to do a given task and covers a broad range of topics. Because it covers a broad range of topics, even if a specific "recipe" doesn't do exactly what you want, the

C++ Cookbook (Cookbooks (O'Reilly))
โœ D. Ryan Stephens, Christopher Diggins, Jonathan Turkanis, Jeff Cogswell ๐Ÿ“‚ Library ๐Ÿ“… 2005 ๐Ÿ› O'Reilly Media ๐ŸŒ English

Despite its highly adaptable and flexible nature, C++ is also one of the more complex programming languages to learn. Once mastered, however, it can help you organize and process information with amazing efficiency and quickness.<br>The C++ Cookbook will make your path to mastery much shorter. This

JUNOS Cookbook (Cookbooks (O'Reilly))
โœ Aviva Garrett ๐Ÿ“‚ Library ๐Ÿ“… 2006 ๐ŸŒ English

The Juniper Networks routing platforms are becoming the go-to solution for core, edge, metro and remote office networks, and JUNOS software is behind it all. The operating system is so full of industrial-strength routing protocols and IP innovations that those treading into the world of JUNOS will

R Cookbook (O'Reilly Cookbooks)
โœ Paul Teetor ๐Ÿ“‚ Library ๐Ÿ“… 2011 ๐Ÿ› O'Reilly Media ๐ŸŒ English

With more than 200 practical recipes, this book helps you perform data analysis with R quickly and efficiently. The R language provides everything you need to do statistical work, but its structure can be difficult to master. This collection of concise, task-oriented recipes makes you productive wit

C++ Cookbook (Cookbooks (O'Reilly))
โœ D. Ryan Stephens, Christopher Diggins, Jonathan Turkanis, Jeff Cogswell ๐Ÿ“‚ Library ๐Ÿ“… 2005 ๐Ÿ› O'Reilly Media ๐ŸŒ English

Despite its highly adaptable and flexible nature, C++ is also one of the more complex programming languages to learn. Once mastered, however, it can help you organize and process information with amazing efficiency and quickness. The C++ Cookbook will make your path to mastery much shorter. This