unable to retrieve correct number of records
Posted: Tue Mar 21, 2006 1:41 am
I have a set of jobs which uses ODBC stages to retrieve data from an informix database based on time intervals.
SQL used in the ODBC
When I manually run the sql query with the exact same intervals, I'll get different number of records. Example: in the job, I got 0 rows, but running the sql query gives me 150 rows. the job will give me less number of rows
I run the jobs daily on few tables and I don't always get this problem -- it might happen on table1 on 1 ocassion, table 19 on the other or even does not happen at all.
Can anyone tell me where the problem lies?
edit: the records are insert-only, there is no update/delete of records happening at any point of time. So theoretically the number of rows from the same SQL should gives the same result.
SQL used in the ODBC
Code: Select all
select a,b,c
from <table1>
where timestamp > 'start_time' and timestamp <= 'end_time'When I manually run the sql query with the exact same intervals, I'll get different number of records. Example: in the job, I got 0 rows, but running the sql query gives me 150 rows. the job will give me less number of rows
I run the jobs daily on few tables and I don't always get this problem -- it might happen on table1 on 1 ocassion, table 19 on the other or even does not happen at all.
Can anyone tell me where the problem lies?
edit: the records are insert-only, there is no update/delete of records happening at any point of time. So theoretically the number of rows from the same SQL should gives the same result.