![]() | |
![]() |
| | Thread Tools | Display Modes |
#21
| |||
| |||
|
|
What data standards should a database designer know about? Some are so general they jump out at you -- ISO-8601 temproal dispaly formats. ISO-3166 Country codes ISO-5218 sex codes email addresses and URLs Various national postal codes Various banking codes liek CUSIP and ISIN ISBN for books ISAN for AV media VIN for vehicles Passport numbers What am I forgetting? What is a good source for them? As an aside, a few months ago, a poster assured me that his industry (metals) had no standards and I should shut up and not criticize him for "cowboy coding" his own encoding schemes. Since I could look on the bottom of my cookware and see some numbers that deal with the kind of stainless steel used, I was pretty sure he was wrong, so I Googled it (http://metals.about.com/od/specification1/ Metals_Specifications_and_Standards.htm) I am trying to get a book together on such standards so that maybe the next batch of Newbies will stop inventing their own encodings. Suggestions welcome! |
#22
| |||
| |||
|
|
Finance: FIX, BSB, SWIFT, CHIPS, ACH. *These are all protocols or fileformats, they imply bank ID codes like the SWIFT code *There are also hundreds of lesser known standards like APCA with their own codes, I'd start with SWIFT and FIX. |
|
A database designer also has to see the protocols, because generically you need to capture enough data to do the transaction. |
|
For example, you've got ISO 3 character country codes in your database,now you realize you need the ISO 2 character country code to do a transaction. |
#23
| |||
| |||
|
|
Various national postal codes |
#24
| |||
| |||
|
#25
| |||
| |||
|
|
Various national postal codes snip WHEN 'CA' THEN '[0-9][A-Z][0-9] [A-Z][0-9][A-Z]' snip Philipp Post Assuming the clause refers to Canada, it should be |
#26
| |||
| |||
|
|
Various national postal codes Just found a CHECK constraint I wrote as an exercise for myself some years ago. It validates the postal codes for 58 countries from which I had the pattern and which would fit into a LIKE predicate: |
|
WHEN 'CA' THEN '[0-9][A-Z][0-9] [A-Z][0-9][A-Z]' |
#27
| |||
| |||
|
|
WHEN 'CA' THEN '[0-9][A-Z][0-9] [A-Z][0-9][A-Z]' This is wrong for Canada. The Postal Code format is letter-digit- |
#28
| |||
| |||
|
|
What data standards should a database designer know about? Some are so general they jump out at you -- ISO-8601 temproal dispaly formats. ISO-3166 Country codes ISO-5218 sex codes email addresses and URLs Various national postal codes Various banking codes liek CUSIP and ISIN ISBN for books ISAN for AV media VIN for vehicles Passport numbers What am I forgetting? What is a good source for them? |
#29
| |||
| |||
|
|
* WHEN 'PT' THEN '[0-9][0-9][0-9][0-9]' |
![]() |
| Thread Tools | |
| Display Modes | |
| |