<div class="gmail_quote">On Thu, Jul 1, 2010 at 8:08 AM, John F. Eldredge <span dir="ltr"><<a href="mailto:john@jfeldredge.com">john@jfeldredge.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div id=":53b" class="ii gt">In fact, the technique of having the user select from a list of words, but actually storing the value as an arbitrary ID (generally numeric), is the recommended technique in database design.  It is called "normalizing the database".  Having the linking value be an ID value means that, should you want to change the verbal description of the value, for example from soccer to association_football, you only have to change the value once, in the lookup table, rather than changing it in thousands of places.</div>

</blockquote></div><br>+1 <br><br>Not only does this insulate from change and allow alternate terms to map to thzsame code, but also supports internationalization.<br clear="all"><br>-- <br>Bill<br><a href="mailto:n1vux@arrl.net">n1vux@arrl.net</a> <a href="mailto:bill.n1vux@gmail.com">bill.n1vux@gmail.com</a><br>