× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




On Tuesday, November 18, 2003, at 07:54 AM, Booth Martin wrote:


I am curious if i am alone on my thoughts about unique keys. If there is a
very loud silence we will know that unique keys is the answer. Is there
other ways to have various addresses without using defined record types as
part of the key.

I guess that since there were no replies to this among the 253 mailing list messages (all from midrange.com lists) I received this morning that indicates silence. No wonder I can't get any work done :)


I interpreted your original statement to mean you have multiple records for the same customer in the customer master file where the only difference between those records is the address information.

CUSNBR     CUSNAM    CUSADR          ADRTYP
12345      Fred Nurk 123 Main Street   L
12345      Fred Nurk PO Box 27         P
12345      Fred Nurk Warehouse 1       D

Database normalisation would suggest that your multiple addresses for a single customer should be moved to a separate file. Thus the customer master file contains the unique values and the different addresses are located in a customer address file keyed on customer number and address type.

CUSNBR    CUSNAM
12345     Fred Nurk

CUSNBR    CUSADR          ADRTYP
12345     123 Main Street   L
12345     PO Box 27         P
12345     Warehouse 1       D

Regards,
Simon Coulter.
--------------------------------------------------------------------
   FlyByNight Software         AS/400 Technical Specialists

   http://www.flybynight.com.au/
   Phone: +61 3 9419 0175   Mobile: +61 0411 091 400        /"\
   Fax:   +61 3 9419 0175                                   \ /
                                                             X
                 ASCII Ribbon campaign against HTML E-Mail  / \
--------------------------------------------------------------------



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.