× 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.



Regarding jt and Hans discussion on that database design.

Good database design is not really rocket science.

I agree that putting that into an alpha field is hard to understand. 
Granted, we have a package that stores employee numbers into alpha, and 
does their own auto incrementing for new employees.  The business logic 
was to support customers who migrated from a system with alpha employee 
numbers to use their package.  I can understand that paradigm.

Ideally such an id field would use some of the new data types supported in 
V5R2 to do this autoincrementing.
Failing that the update would be in the trigger program.  That's what a 
good DBA does.  Leave the application programming up to the programmer. 
However, much of this stuff needs to be moved out of the application and 
into the DB itself using techniques such as:
- autoincrementing fields
- constraints
- triggers
And all these aren't really all that hard to understand.  It just takes a 
little discipline.

As far as the trick with the data structure.  I don't like that because if 
the field size changes your toast.  And coming from a package that changed 
numerous field sizes, such as the size of the item master number, (which 
is a huge undertaking for an ERP package), I can tell you that this stuff 
happens.  Using the other techniques allows a recompile to handle it.

Rob Berendt
-- 
"They that can give up essential liberty to obtain a little temporary 
safety deserve neither liberty nor safety." 
Benjamin Franklin 

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.