while select count(RecId) from inventDim join inventSum group by InventDimId { print inventDim.wMSLocationId; print inventSum.InventDimId; // пусто pause; }