Joe Celko's Data, Measurements and Standards in SQL


  • Joe Celko, Independent Consultant, Austin, Texas

Joe Celko has looked deep into the code of SQL programmers and found a consistent and troubling pattern - a frightening lack of consistency between their individual encoding schemes and those of the industries in which they operate. This translates into a series of incompatible databases, each one an island unto itself that is unable to share information with others in an age of internationalization and business interdependence. Such incompatibility severely hinders information flow and the quality of company data.

Data, Measurements and Standards in SQL reveals the shift these programmers need to make to overcome this deadlock. By collecting and detailing the diverse standards of myriad industries, and then giving a declaration for the units that can be used in an SQL schema, Celko enables readers to write and implement portable data that can interface to any number of external application systems!

This book doesn't limit itself to one subject, but serves as a detailed synopsis of measurement scales and data standards for all industries, thereby giving RDBMS programmers and designers the knowledge and know-how they need to communicate effectively across business boundaries.
View full description


Working SQL programmers, database administrators, database designers, database analysts, and application system developers as well as those who are developing new features for DBMSs who want to know about users' ideas and needs. The book would also be of interest to anyone working with electronic information, not necessarily in the relational database context, but also XML, Web sites, etc.


Book information

  • Published: September 2009
  • ISBN: 978-0-12-374722-8


"Unique? Without question. To my knowledge there is nothing out there quite like this. Further, based on his previous books, Joe is eminently qualified to put these "external world" ideas (standard codes used in industry) into the context of relational databases and SQL."--Rudy Limeback - An independent SQL Consultant

"This book focuses on the problems of standardization and the related problems of measurements. It is clearly intended to encourage designers to at least be aware of the problems, before their database designs go live."--Computing Reviews

Table of Contents

0.0. Introduction 1.0. Scales and Measurement Theory 2.0. Data Encoding Schemes 2.1. Classification 2.2. Check Digits 3.0. Physical Measurements3.1. Brief History of Measurement Standards 3.2. Rise of ISO and Other Organizations3.3. ISO-2955 Standard 3.3.1. Basic Units3.3.2. Compound Units3.4. Color Systems4.0. Temporal Measurements 4.1. The Calendar4.1.1. A History of the Common Era Calendar 4.1.2. ISO-8601 Standard 4.1.3. Implementations in SQL 4.2. The Clock4.2.1. Leap Seconds, UTC and Atomic Clocks4.2.2. Time Zones in SQL 5.0. Industry Standards For Products5.1. UPC and EAN Bar Codes5.2. Standard Packaging Units5.2.1. U.S. Systems5.2.2. European Union and Other European Systems 5.2.3. Asian and Other Systems5.3. Bank Standards5.3.1. Account Numbers5.3.2. Checking U.S. Banking System5.3.2.2. IBAN and Other International Standards 6.0. Postal Address Encoding6.1. Formatting Names6.2. ZIP Codes in the United States 6.3. Various Foreign Systems 6.4. Systems Used by UPS and other Delivery Services7.0. Currency 7.1. GAAP Rules in the United States 7.2. Rules for Euro Conversions 8.0. Internet 8.1. Email Addresses8.2. IP Addresses 9.0. Business Codes9.1. The Rise and Fall of EDI and ANSI X129.2. XML Standards in Various Industries 9.3. Company Identifiers 9.3.1. DUNS 9.3.2. Stock Ticker Symbols9.4. Chart of Accounts10.0. Medical Systems10.1. ICD Codes 10.2. HIPAA Codes10.3. Drug Codes11.0. General Classification Systems11.1. Alphabetic Order11.1.1. History11.1.2. Problems with Foreign Alphabets11.2. Dewey Decimal Classification 11.3. Library of Congress