while select tmpShtrihMTable order by TransDateTime { if (DateTimeUtil::date(tmpShtrihMTable.TransDateTime) != _transDate) // _transDate нужная дата continue;