The Art of SQL (Paperback)

Stephane Faroult, Peter Robson

  • 出版商: O'Reilly
  • 出版日期: 2006-04-18
  • 定價: $1,820
  • 售價: 9.5$1,729
  • 語言: 英文
  • 頁數: 372
  • 裝訂: Paperback
  • ISBN: 0596008945
  • ISBN-13: 9780596008949
  • 相關分類: SQL
  • 立即出貨 (庫存=1)




Enterprises throughout the world are confronted with exploding volumes of data, and many IT departments are looking for quick solutions. This insightful book demonstrates that since SQL code may run for 5 to 10 years, and run on different hardware, it must be fast and sound from the start. Expert authors Stephane Faroult and Peter Robson offer SQL best practices and relational theory that force you to focus on strategy rather than specifics.

For all the buzz about trendy IT techniques, data processing is still at the core of our systems, especially now that enterprises all over the world are confronted with exploding volumes of data. Database performance has become a major headache, and most IT departments believe that developers should provide simple SQL code to solve immediate problems and let DBAs tune any "bad SQL" later.

In The Art of SQL, author and SQL expert Stephane Faroult argues that this "safe approach" only leads to disaster. His insightful book, named after Art of War by Sun Tzu, contends that writing quick inefficient code is sweeping the dirt under the rug. SQL code may run for 5 to 10 years, surviving several major releases of the database management system and on several generations of hardware. The code must be fast and sound from the start, and that requires a firm understanding of SQL and relational theory.


The Art of SQL offers best practices that teach experienced SQL users to focus on strategy rather than specifics. Faroult's approach takes a page from Sun Tzu's classic treatise by viewing database design as a military campaign. You need knowledge, skills, and talent. Talent can't be taught, but every strategist from Sun Tzu to modern-day generals believed that it can be nurtured through the experience of others. They passed on their experience acquired in the field through basic principles that served as guiding stars amid the sound and fury of battle. This is what Faroult does with SQL.


Like a successful battle plan, good architectural choices are based on contingencies. What if the volume of this or that table increases unexpectedly? What if, following a merger, the number of users doubles? What if you want to keep several years of data online? Faroult's way of looking at SQL performance may be unconventional and unique, but he's deadly serious about writing good SQL and using SQL well. The Art of SQL is not a cookbook, listing problems and giving recipes. The aim is to get you-and your manager-to raise good questions.



全球企業面臨爆炸性的數據量增長,許多IT部門正在尋找快速解決方案。這本富有洞察力的書籍證明,由於SQL代碼可能運行5到10年,並在不同的硬件上運行,因此必須從一開始就快速且可靠。專家作者Stephane Faroult和Peter Robson提供了SQL最佳實踐和關聯理論,迫使您專注於策略而不是細節。


在《SQL的藝術》中,作者和SQL專家Stephane Faroult認為這種“安全方法”只會導致災難。他的富有洞察力的書籍以孫子兵法為名,認為編寫快速而低效的代碼只是把灰塵掃到地毯下。SQL代碼可能運行5到10年,經歷數據庫管理系統的幾個重大版本和幾代硬件。代碼必須從一開始就快速且可靠,這需要對SQL和關聯理論有牢固的理解。