If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Chit Chat > What kind of design flaw is data field re-use?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-11-10, 13:07
tom33952 tom33952 is offline
Registered User
 
Join Date: Mar 2010
Posts: 1
What kind of design flaw is data field re-use?

We had a program malfunction because it re-used a data field to make a processing decision; when the characteristics of the data stored in the data field later changed, the program made a processing error and reported an incorrect amount. In general, I have avoided the practice using data fields for different, disparate purposes because it creates a hidden dependency. Someone asked me what the exact principle was for this design heuristic, and I could only reply that it is a form of coupling. Do you know a more specific rule that prevents this practice?
Reply With Quote
  #2 (permalink)  
Old 03-11-10, 13:27
r937 r937 is online now
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,085
Domain integrity specifies that all columns in relational database must be declared upon a defined domain. The primary unit of data in the relational data model is the data item. Such data items are said to be non-decomposable or atomic. A domain is a set of values of the same type. Domains are therefore pools of values from which actual values appearing in the columns of a table are drawn.

- Data integrity - Wikipedia, the free encyclopedia
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Tags
database design, program design

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On