I use the following statement in the Select Expert:
{PLINCD.INCALD} >= 20110101.00 and
{@Call Date} in LastFullMonth
I don't want to pull every incident in our system so I use the first statement. This works for a while until it gets outdated and has to search for thousands of records
This is what I use for converting from a timestamp to a numeric in SQL.
dec(
trim(substring(char(date((Current Timestamp - 1 months))),1,4)) ||
trim(substring(char(date((Current Timestamp - 1 months))),6,2)) ||
trim(substring(char(date((Current Timestamp - 1 months))),9,2))
)
I need to convert the ISO date/timestamp to character data then strip the dashes from it and then convert the character to numeric for Crystal Reports. Help.
Thanks.
Eric Greene
Add a comment