posted 7 years ago
I have built a method which takes two datasets: dataset1 and retirementSimpleData. It matches the two datasets based on a primary key/number, defined as cnum, in the code below. I wanted to return the value of the difference between the getAssets value and the getSums value, and this is working, except for one little problem.
Some of the cnums that exist in dataset1 don't exist in retirementSimpleData. Similarly, some cnums which may exist in retirementSimpleData may not exist in dataset1. This is resulting in no data being returned for that cnum
I would like to implement two passes at the end which check in one direction to see if I missed anything. The second pass would check in the opposite direction. However, not sure how I would go about implementing this.
Caveat: dataset1 and retirementSimpledata both use existing SQL pulls which I am not allowed to touch, otherwise I would have simply defined new SQL for these methods in my "DAOImpl." Therefore, I have to work with the data I am getting, and programmatically check for this.