Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Databases General > Re: "code" tabl...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 31 of 43 Topic 3190 of 3270
Post > Topic >>

Re: "code" tables?

by "David Cressey" <cressey73@[EMAIL PROTECTED] > Jun 23, 2008 at 02:13 PM

"Frank Swarbrick" <Frank.Swarbrick@[EMAIL PROTECTED]
> wrote in message
news:485BF5A5.6F0F.0085.0@[EMAIL PROTECTED]
> >>> On 6/20/2008 at 2:49 AM, in message
> <69KdnXkzOICq8sbVnZ2dnUVZ8tDinZ2d@[EMAIL PROTECTED]
>, Roy
> Hann<specially@[EMAIL PROTECTED]
> wrote:
> > "Frank Swarbrick" <Frank.Swarbrick@[EMAIL PROTECTED]
> wrote in message
> > news:485950E4.6F0F.0085.0@[EMAIL PROTECTED]
> >> The following is a message from a fellow programmer to a group of use
> > that
> >> are involved in table design:
> >>
> >> "We are planning on creating 'account opening sources' lookup table
to
> >> store
> >> 'account source' codes and corresponding descriptions. Problem with
> >> storing
> >> this data in a dedicated table is that as we go on we'd end up with
tens
>
> >
> >> and
> >> possibly hundreds of lookup tables.
> >
> > So what?  Tables aren't rationed.
> >
> > The desire to conceal complexity is not the same as the desire to
remove
> >
> > complexity.  The former is counterproductive while the latter is
> > praiseworthy.  What you describe is a a desire to conceal what is
going
> > on.
> > How does that help anyone?
>
> Honestly, I don't know his reasoning.  We're going to have a discussion
next
> week about it, and I'm sure more than one of us will shoot it down. 
Until
> then I'm not sure what is real concern is.

Roy's response is excellent!  Concealing complexity is not the same thing
as
removing complexity.  I wish I'd said that...  and I probably will!


>
> > Maybe the implicit concern is not the number of tables in the database
> > but
> > the amount of code required to maintain them.  That's a programming
> > problem.
>
> Hmm, I don't think that's it.  Why would it be any more work?  If
anything
> it's more work for the DBA, because he has to define the new table!
>

One of the values of a database, as compared with a simple files solution
is
that the data is do***ented, at least to some extent.  When a  new type of
lookup table is to be created, it most often means that a new type of data
and a new entity exists in the system.

The people who want to bypass the DBA in the creation process thereby
inherit the responsibility of making the new type of code useable by
everyone who might need to know about it,  and therefore the
responsibility
of do***enting the new data type.  Often, when programmers are able to
create and store new types of code on the fly,  in an EAV -- OTLT type of
design,  the only place where knowledge about the data is kept is in the
brains of the programmers.

There are a few cir***stances where this works out ok,  but most of the
time
it ends up causing a severe problem when people other than the original
programmers try to make use of the data.

Coding a lookup from an EAV table involves a more complex set of criteria.
EG:

where code = "CO" and code_type = "AIRLINE_CODE"

If different code types are stored in different columns  (and therefore
probably in different tables)  you only have to look up the code,  and
look
in the right table.  So it's adding complexity to the code, while reducing
complexity in the table structure.  More than one programmer has commited
the bug of leaving off the second part of the criteria above.




> > Get the programmors off their ***** and tell them to learn how to
write
> > dynamic SQL.
>
> Hmm, better watch it here.  :-)  Both he and I are programmers.
> Though I'm not sure where dynamic SQL comes in to play here.
>

I'm not sure how dynamic SQL applies either...
 




 43 Posts in Topic:
"code" tables?
"Frank Swarbrick&quo  2008-06-18 18:16:04 
Re: "code" tables?
Marco Mariani <marco@[  2008-06-19 10:57:06 
Re: "code" tables?
--CELKO-- <jcelko212@[  2008-06-19 10:31:51 
Re: "code" tables?
--CELKO-- <jcelko212@[  2008-06-19 15:45:01 
Re: "code" tables?
--CELKO-- <jcelko212@[  2008-06-20 21:26:24 
Re: "code" tables?
"Frank Swarbrick&quo  2008-06-19 13:51:44 
Re: "code" tables?
"Frank Swarbrick&quo  2008-06-19 13:53:18 
Re: "code" tables?
"Roy Hann" <  2008-06-20 09:49:59 
Re: "code" tables?
Ed Prochak <edprochak@  2008-06-24 04:39:56 
Re: "code" tables?
Ed Prochak <edprochak@  2008-06-24 07:06:10 
Re: "code" tables?
"Frank Swarbrick&quo  2008-06-20 18:20:37 
Re: "code" tables?
"Frank Swarbrick&quo  2008-06-20 18:23:33 
Re: "code" tables?
"Arved Sandstrom&quo  2008-06-21 12:04:00 
Re: "code" tables?
"David Cressey"  2008-06-23 14:15:22 
Re: "code" tables?
"Arved Sandstrom&quo  2008-06-23 20:04:00 
Re: "code" tables?
Gene Wirchenko <genew@  2008-06-23 18:18:26 
Re: "code" tables?
"Arved Sandstrom&quo  2008-06-24 03:42:56 
Re: "code" tables?
"David Cressey"  2008-06-24 11:20:16 
Re: "code" tables?
"Arved Sandstrom&quo  2008-06-24 12:58:37 
Re: "code" tables?
"David Cressey"  2008-06-24 14:01:23 
Re: "code" tables?
"Arved Sandstrom&quo  2008-06-25 05:13:26 
Re: "code" tables?
"David Cressey"  2008-06-25 14:47:13 
Re: "code" tables?
"Arved Sandstrom&quo  2008-06-26 12:08:21 
Re: "code" tables?
"Roy Hann" <  2008-06-26 13:53:32 
Re: "code" tables?
Gene Wirchenko <genew@  2008-06-26 09:52:50 
Re: "code" tables?
"David Cressey"  2008-06-26 17:31:31 
Re: "code" tables?
Marco Mariani <marco@[  2008-06-27 10:31:30 
Re: "code" tables?
"Arved Sandstrom&quo  2008-06-28 10:19:00 
Re: "code" tables?
"David Cressey"  2008-06-26 13:11:03 
Re: "code" tables?
"David Cressey"  2008-06-24 11:05:30 
Re: "code" tables?
"David Cressey"  2008-06-23 14:13:58 
Re: "code" tables?
"Roy Hann" <  2008-06-23 16:23:46 
Re: "code" tables?
"David Cressey"  2008-06-24 11:41:44 
Re: "code" tables?
"Roy Hann" <  2008-06-24 14:47:39 
Re: "code" tables?
"David Cressey"  2008-06-24 14:26:09 
Re: "code" tables?
"Roy Hann" <  2008-06-24 16:05:05 
Re: "code" tables?
"David Cressey"  2008-06-24 18:09:27 
Re: "code" tables?
"Frank Swarbrick&quo  2008-06-23 10:16:23 
Re: "code" tables?
"Frank Swarbrick&quo  2008-06-23 15:47:12 
Re: "code" tables?
"Roy Hann" <  2008-06-24 01:15:59 
Re: "code" tables?
"David Cressey"  2008-06-24 12:36:50 
Re: "code" tables?
"Frank Swarbrick&quo  2008-06-24 13:56:05 
Re: "code" tables?
"Roy Hann" <  2008-06-24 21:13:57 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 21:37:21 CDT 2008.