Book description
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.
* Collects and details the diverse data standards of myriad industries under one cover, thereby creating a definitive, one-stop-shopping opportunity for database programmers.
* Enables readers to write and implement portable data that can interface to any number external application systems, allowing readers to cross business boundaries and move up the career ladder.
* Expert advice from one of the most-read SQL authors in the world who is well known for his ten years of service on the ANSI SQL standards committee and Readers Choice Award winning column in Intelligent Enterprise.
Table of contents
- Cover image
- Table of Contents
- Copyright
- Introduction
- Part 1. History, Standards, and Designing Data
- Chapter 1. Scales and Measurements
- 1.1. Measurement Theory
- 1.2. Defining a Measurement
- 1.3. Tolerance
- 1.4. Validation
- 1.5. Verification
- Chapter 2. Validation
- 2.1. Look-Up Tables
- 2.2. Check Digits
- 2.3. Declarations, Not Functions, Not Procedures
- 2.4. Patterns and Regular Expressions
- 2.5. Nondatabase Validation
- Chapter 3. Data Encoding Schemes
- 3.1. Bad Encoding Schemes
- 3.2. Encoding Scheme Types
- 3.3. Atomic Versus Scalar
- 3.4. Transition States
- 3.5. General Guidelines for Designing Encoding Schemes
- 3.6. Keep the Codes in the Database
- 3.7. Multiple Character Sets
- Chapter 4. Scales
- 4.1. BIT Flags are Not Scales
- 4.2. Dimensionless Measurements
- 4.3. Types of Scales
- 4.4. Using Scales
- 4.5. Scale Conversion
- 4.6. Derived Units
- 4.7. Punctuation and Standard Units
- 4.8. General Guidelines for Using Scales in a Database
- Chapter 5. Data with Ignorance
- 5.1. Get it Right
- 5.2. Replace Bad Values with a General Dummy Value
- 5.3. Replace Bad Values with a Statistical Dummy Value
- 5.4. Replace Bad Values to Complete a Statistical Distribution
- 5.5. Replace Bad Values with Statistical Profiling
- Chapter 6. Keys
- 6.1. Uniqueness
- 6.2. A Key Cannot be NULL
- 6.3. Invariant or Universally Controlled Values
- 6.4. Surrogate and Physical Locators Keys
- Part 2. A Sampling of Standards
- Chapter 7. Dates
- 7.1. ISO-8601 Standard
- 7.2. Putting it All Together
- 7.3. Durations and Intervals
- Chapter 8. Sex Codes
- 8.1. Sex Codes
- 8.2. Other Sources
- Chapter 9. Ethnicity and Race Codes
- 9.1. Race Versus Ethnicity
- 9.2. U.K. Ethnic Groups
- Chapter 10. ISO-3166 and Other Country Codes
- 10.1. ISO 3166-1
- 10.2. ISO 3166-2
- 10.3. ISO 3166-3
- Chapter 11. Language Codes
- Chapter 12. Currency Codes
- 12.1. Noncurrency Units
- Chapter 13. National Identification Numbers
- 13.1. Social Security Numbers
- 13.2. Social Insurance Number
- 13.3. Swedish Personal Identity Number
- 13.4. EU Biometric Passports
- Chapter 14. Occupations
- 14.1. National Occupational Classification (NOC)
- Chapter 15. Colors
- 15.1. International Color Consortium
- Chapter 16. Telephone Numbers
- 16.1. The International Telephone Number Components
- 16.2. Subscriber Local Exchange or Prefix
- Chapter 17. E-Mail Addresses
- Chapter 18. Universal Postal Union
- 18.1. ZIP Code
- 18.2. Canadian Postal Codes
- 18.3. Postcodes in the United Kingdom
- 18.4. Case Expression for Many International Postal Codes
- Chapter 19. Hierarchical Triangular Mesh
- Chapter 20. Shoe Sizes
- 20.1. Mondopoint System
- Chapter 21. International Clothing Sizes
- Chapter 22. ICD Codes
- 22.1. Local Versions
- 22.2. Mental and Behavioral Disorders
- Chapter 23. Vehicle Identification Number (VIN)
- 23.1. VIN Format
- Chapter 24. Freight Containers
- 24.1. Freight Container Codes
- 24.2. Size and Type Codes
- 24.3. Related ISO Standards
- Chapter 25. Credit Card Numbers
- 25.1. Card Issuers
- 25.2. Account Number
- 25.3. Other Numbers
- 25.4. Personal Identification Numbers
- 25.5. PCI DSS and Related Standards
- 25.6. Tools and More Information
- Chapter 26. SWIFT and Related Banking Standards
- 26.1. BIC Codes
- 26.2. International Bank Account Number (IBAN)
- Chapter 27. Data Universal Numbering System
- Chapter 28. Global Trade Item Number
- 28.1. GTIN Family
- 28.2. ISBN
- Chapter 29. Digital Object Identifier (DOI)
- 29.1. DOI Syntax
- 29.2. ISBN-A
- Chapter 30. Audiovisual Media
- 30.1. Format
- 30.2. Cataloging AV Materials
- Chapter 31. ISIN and Related Securities Identifiers
- 31.1. CUSIP
- 31.2. SEDOL and Other Countries
- 31.3. Classification of Financial Instruments
- Chapter 32. Temperature Scales
- 32.1. Celsius Scale
- 32.2. Fahrenheit Scale
- 32.3. Kelvin Scale
- 32.4. Other Temperature Scales
- Chapter 33. National Animal Identification System (NAIS)
- 33.1. Premises Identification Number (PIN)
- 33.2. Animal Identification Number (AIN and GIN)
- 33.3. Animal Tracking and Other Considerations
- Chapter 34. ISO 216 Paper Sizes (“A,” “B,” and “C” Series)
- 34.1. “B” Series
- 34.2. “C” Series
- 34.3. Tolerances
- 34.4. Non-ISO Paper Sizes
- Chapter 35. Compass Points
- 35.1. Traditional Compass Points
- 35.2. Other Compass Point Systems
- Chapter 36. Unicode
- 36.1. Types of Written Languages
- 36.2. Practical and Political Problems
- 36.3. Normalization
- Chapter 37. Driver’s Licenses
- 37.1. ID-1 Cards
- 37.2. U.S. Driver’s Licenses
- 37.3. Enhanced driver’s License (EDL)
- Chapter 38. Currency Units and Near Money
- 38.1. Stock Exchanges and Nondecimal Units
- 38.2. Decimalization in the United Kingdom
- 38.3. Physical Currency Choices
- 38.4. Coupons
- Chapter 39. Recipes and Food Preparation
- 39.1. Weight Versus Volume
- 39.2. Scaling a Recipe
- Chapter 40. Portable Document Format (PDF)
- 40.1. ISO 32000
- 40.2. Things that Paper Cannot Do
- Chapter 41. Temporal Data
- 41.1. Notes on Calendar Standards
- 41.2. SQL Temporal Data Types
- 41.3. Expressions with Date Arithmetic
- 41.4. The Nature of Temporal Data Models
- Chapter 42. Additive Congruential Generators
- Chapter 43. Traditional and Metric Typographic Units
- 43.1. DIN 16507-2 Font Sizes
- Index
Product information
- Title: Joe Celko's Data, Measurements and Standards in SQL
- Author(s):
- Release date: September 2009
- Publisher(s): Morgan Kaufmann
- ISBN: 9780080884455
You might also like
book
Joe Celko's Thinking in Sets: Auxiliary, Temporal, and Virtual Tables in SQL
Perfectly intelligent programmers often struggle when forced to work with SQL. Why? Joe Celko believes the …
book
Joe Celko's SQL Programming Style
Are you an SQL programmer that, like many, came to SQL after learning and writing procedural …
video
GenAI Essentials for Everyone - Overview
Our team of experts has hand-selected and organized the most crucial concepts and practical applications of …
article
Relational Power Is the New Currency of Hybrid Work
The growing use of text-based messaging platforms such as Slack and Huddle means that many manager-employee …