|
I am using embedded SQL to extract a data set. I am having a terrible
time figuring out how to coalesce a timestamp or even a time.
I started with the timestamp and had no luck. I split the field into
a date and time. Now, the date works but the time does not.
I am doing a Left Outer Join and may not get Records. I keep getting
the same error message - chop the 01.01.00 to 01.01 but no luck.
When I search I only get DATE. I cannot find examples to TimeStamp
or Time.
(Run SQL Scripts)
Select
A.TANUM, [...]
COALESCE(D.IQCCHGDT,DATE(1990-01-01)),
COALESCE(D.IQCCHGTM,TIME(01.01.00)),
COALESCE(D.IQCSTAT,' ')
[...]
Message: [SQL0104] Token .00 was not valid. Valid tokens: ) ,.
Cause . . . . . : A syntax error was detected at token .00.
Token .00 is not a valid token.
A partial list of valid tokens is ) ,.
This list assumes that the statement is correct up to the token
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.