SQL Cookbook (Paperback)
暫譯: SQL 食譜 (平裝本)

Anthony Molinaro

買這商品的人也買了...

相關主題

商品描述

Description

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 FROM WHERE . 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

 

 

商品描述(中文翻譯)

**描述**

你已經了解 SQL 查詢語言的基本知識,但你覺得自己並未充分利用 SQL 的表達能力。你希望在將數據通過網絡推送到應用程序之前,學會如何在數據庫內使用 SQL 做更多的工作。你希望將你的 SQL 技能提升到一個新的水平。

說實話,SQL 是一種看似簡單的語言,許多數據庫開發人員從未超越簡單的語句:SELECT FROM WHERE 。但這門語言還有更多的功能可以發揮。在SQL Cookbook中,經驗豐富的 SQL 開發人員 Anthony Molinaro 分享了他最喜愛的 SQL 技巧和特性。你將學到:

- 窗口函數,無疑是過去十年來對 SQL 最重要的增強功能。如果你還沒有使用這些,你就錯過了
- 強大的數據庫特定功能,例如 SQL Server 的 PIVOT 和 UNPIVOT 操作符、Oracle 的 MODEL 子句,以及 PostgreSQL 非常有用的 GENERATE_SERIES 函數
- 將行轉換為列,將列反向轉換為行,使用樞紐分析來促進行間計算,以及對結果集進行雙重樞紐分析
- 分桶化,以及為什麼你永遠不應該在布魯克林使用這個術語。
- 如何創建直方圖,將數據總結到桶中,對一系列移動值進行聚合,生成累計總和和小計,以及其他高級數據倉儲技術
- 遍歷字符串的技術,這使你能夠使用 SQL 解析字符串中的字符、單詞或分隔元素