Joe Celko's SQL Programming Style

1st Edition

Print ISBN: 9780120887972
eBook ISBN: 9780080478838
Imprint: Morgan Kaufmann
Published Date: 17th April 2005
Page Count: 272
33.95 + applicable tax
26.99 + applicable tax
43.95 + applicable tax
Compatible Not compatible
VitalSource PC, Mac, iPhone & iPad Amazon Kindle eReader
ePub & PDF Apple & PC desktop. Mobile devices (Apple & Android) Amazon Kindle eReader
Mobi Amazon Kindle eReader Anything else

Institutional Access


Are you an SQL programmer that, like many, came to SQL after learning and writing procedural or object-oriented code? Or have switched jobs to where a different brand of SQL is being used, or maybe even been told to learn SQL yourself?

If even one answer is yes, then you need this book. A "Manual of Style" for the SQL programmer, this book is a collection of heuristics and rules, tips, and tricks that will help you improve SQL programming style and proficiency, and for formatting and writing portable, readable, maintainable SQL code. Based on many years of experience consulting in SQL shops, and gathering questions and resolving his students’ SQL style issues, Joe Celko can help you become an even better SQL programmer.

Key Features

  • Help you write Standard SQL without an accent or a dialect that is used in another programming language or a specific flavor of SQL, code that can be maintained and used by other people.
  • Enable you to give your group a coding standard for internal use, to enable programmers to use a consistent style.
  • Give you the mental tools to approach a new problem with SQL as your tool, rather than another programming language — one that someone else might not know!


Managers seeking programming standards in their shops, team leaders seeking programming standards in their projects, SQL programmers attempting to set up programming standards in their own work, and newer SQL programmers who want to build good habits from the start.

Table of Contents

Chapter 1. Names and Data Elements; Chapter 2. Fonts, Punctuation and Spacing; Chapter 3 Data Declaration Language; Chapter 4 Scales and Measurements; Chapter 5 Data Encoding Schemes; Chapter 6 Coding Choices; Chapter 7 How to Use Views; Chapter 8 How to Write Stored Procedures; Heuristics.


No. of pages:
© Morgan Kaufmann 2005
Morgan Kaufmann
eBook ISBN:
Paperback ISBN:


“Joe Celko, maybe one of the most prominent representatives of the database community these days, has written some of the best books about SQL programming in general. This book, however, is different. “SQL Programming Style” doesn’t teach you how to become a better SQL developer with SQL puzzles and brainteasers. Rather, it shows you “how to work in logical and declarative terms”.” —, August 17, 2006