Thanks gvee and mike_bike_kite,
gvee: The query which u posted is retrieving data. Now I need to validate the data with different scenarios whether that query is retreiving the valid data or not.
mike_bike_kite: For your questions
Code:
Would it be possible to calculate these values before doing the query and then just joining to this new data?
No, I need to give this query in a file. First I will retrieve the qurey string from the file and then I will retreive the data from database.
Code:
What are the indexes on the account table and roughly how many rows?
Currently I don't have any idexes, because this table will be used to insert data more times than retreiving data. But the "acctid" is the primary key in the
"account" table.
Thanks,
Naresh.