|
Luc,
But what happens if your data has to be used in different environments?
Let’s suppose that you have a data repository that has a date, e.g. an
expiration date. Let’s call it EXPDATE and give it a value of December 31,
2011.
If you are showing that info in the US, your date would be show as 12/31/11.
In Europe: 31.12.2011, etc. Another example would be the use of digits group
separators. In the US is a comma, many other countries use a period and
finally, ISO recommends a space (a “thin space”, in fact). Your application
has to do (and redo) the necessary editing according to the location it
would be used.
So it could be argued that the editing of data should be separated from the
data itself and be a part of the application (or “business logic”).
Now, with SQL you can “tie” your data to your business logic so, if you have
the proper UDF, you can automagically present the right format to the proper
audience (EU, US, etc.) and it would not matter which tool you are using to
display it (SDA, RPG Print, Query, DFU, Excel thru ODBC, etc).
Of course, regarding SQL there a lot of more benefits than simply data
editing .
Best Regards,
Luis Rodriguez
IBM Certified Systems Expert — eServer i5 iSeries
As an Amazon Associate we earn from qualifying purchases.
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.