|
<snip> SELECT decimal(substring(txt, 5, 7)) as codigo, cast(substring(txt, 84, 4) || '-' || substring(txt, 88, 2) || '-' || substring(txt, 90, 2) as date) as fecha FROM libr.file </snip> The output of an invalid date is a null. Couldn't you just do a IfNull and return some other value?
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.