rushitshah
Registered User.
- Local time
- Today, 08:28
- Joined
- Jul 27, 2005
- Messages
- 19
Hello People.
I need some help coding with an application.
I have a table that includes forecast of different parameters for different products. So when ever new forecast data is added the already existing data for same product and parameter is not deleted, but there is a field called revision, so old data record is marked as 0 and new is marked as 1 to indicated the revision 1 indicates new forecast. It can go like 2, 3....
What I want is to comapre the latest records for different products and their parameters from the table.
So I can do a duplicate record query, that will give me all the duplicates for certain product and parameter. The other records remaining in the table now are only single, so they can be latest. And from the duplicate query I need to take highest revision no. for the latest record.
After that I need to merge all those, highest revision no. records from duplicate query and the single records (The records in the table other than the duplicate query records)
Need some logical and code help with this.
Thanks for your time.
I need some help coding with an application.
I have a table that includes forecast of different parameters for different products. So when ever new forecast data is added the already existing data for same product and parameter is not deleted, but there is a field called revision, so old data record is marked as 0 and new is marked as 1 to indicated the revision 1 indicates new forecast. It can go like 2, 3....
What I want is to comapre the latest records for different products and their parameters from the table.
So I can do a duplicate record query, that will give me all the duplicates for certain product and parameter. The other records remaining in the table now are only single, so they can be latest. And from the duplicate query I need to take highest revision no. for the latest record.
After that I need to merge all those, highest revision no. records from duplicate query and the single records (The records in the table other than the duplicate query records)
Need some logical and code help with this.
Thanks for your time.