Georgedooley
Technical User
Hi
I am trying to create a SQL statement for a crystal report to pull all scantime records from a progress database for the last 2 hours.
The scantime is a interger type field. This is a very large database, therefore I want to write an SQL query to pull back to crystal only the data I need.If I create a formula in crystal to convert the interger to time then this will not be passed in the SQL Query.
Can the interget be converted to a time in SQL to allow the SQL look for all scantime records between currenttime - 2hours?
I hope this makes sense.
I am trying to create a SQL statement for a crystal report to pull all scantime records from a progress database for the last 2 hours.
The scantime is a interger type field. This is a very large database, therefore I want to write an SQL query to pull back to crystal only the data I need.If I create a formula in crystal to convert the interger to time then this will not be passed in the SQL Query.
Can the interget be converted to a time in SQL to allow the SQL look for all scantime records between currenttime - 2hours?
I hope this makes sense.