Anderson, Alan R wrote:

Isn't the card type a piece of derived data? You should never have to enter it directly; it's computable from (the first digit(s) of) the card number.

Also note, the type of card isn't a SET option at all (it would be an ENUM) and if its used as a foreign-key relation to a table of card types, the card type verification (how to check the digits, etc.) could be stored in the table:

CCTypes
-------
ID ... primary key
Name { entries: "mastercard", "visa", "amex", "diners club", "..." }
VerifyMethod { ... }

--
Michael T. Babcock
C.T.O., FibreSpeed Ltd. ... sql
http://www.fibrespeed.net/~mbabcock



---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



Reply via email to