I have a recordset that looks like this:
ClientAssetLinkID ClientAssetSnapshotID SnapshotDate UnitsHeld
990350928 9303104 2005-11-28 08:57:27.720 0.0000
990350928 9313962 2005-11-29 12:20:15.830 557.0000
990350928 9527044 2005-12-29 08:30:51.537 574.0000
990350928 9786282 2006-02-28 16:32:38.407 574.0000
990350928 9990382 2006-03-27 12:37:37.047 0.0000
990350928 10260128 2006-05-01 11:22:46.023 586.0000
990350928 10841440 2006-07-08 13:27:08.443 604.0000
990350928 10915964 2006-07-13 09:37:56.320 1281.0000
990350928 11829349 2006-10-13 16:27:27.347 1281.0000
990350928 12708331 2007-01-13 17:14:32.507 1343.0000
990350928 12710651 2007-01-15 08:34:23.843 1201.0000
990350928 13495591 2007-04-02 16:42:37.760 1201.0000
990350928 13538445 2007-04-04 12:39:20.487 1074.0000
990350928 14130544 2007-06-05 01:32:01.507 1074.0000
990350929 9303104 2005-11-28 08:57:27.720 0.0000
990350929 9313962 2005-11-29 12:20:15.830 557.0000
990350929 9990382 2006-03-27 12:37:37.047 0.0000
990350929 10260128 2006-05-01 11:22:46.023 586.0000
990350929 12708331 2007-01-13 17:14:32.507 1343.0000
990350929 14130544 2007-06-05 01:32:01.507 1074.0000
I need to select the records from this dataset that appeared before there was a reduction in UnitsHeld eg:
ClientAssetLinkID ClientAssetSnapshotID SnapshotDate UnitsHeld
990350928 9313962 2005-11-29 12:20:15.830 557.0000
990350928 12708331 2007-01-13 17:14:32.507 1343.0000
990350928 13495591 2007-04-02 16:42:37.760 1201.0000
990350929 9313962 2005-11-29 12:20:15.830 557.0000
990350929 12708331 2007-01-13 17:14:32.507 1343.0000
How could I go about doing this?
any help appreciated
Myles
Start Free Trial