X++:
select minof(TransDate) from RAssetTrans
group by AccountNum
where RAssetTrans.AssetTransType==RAssetTransType::Depreciation
или
X++:
select minof(TransDate) from RAssetTrans
where RAssetTrans.AssetTransType==RAssetTransType::Depreciation && RAssetTrans.AccountNum ==AccountNum
Оно?