select ceid,ToIMSParentID, FromIMSParentID,*
from vw_ce_dms_transactions
where uid in (
select ItemID
from vw_ce_ims_items
where ItemID in (
select ChildItemID
from ims_associations
where ParentItemID=826901290001393076
)
)
and TransactionType not in ('PALLET_DISPATCH_PICKING', 'PALLET_DISPATCH_LOADING')
EXEC [Dunbia].[GranvilleColdstoreExportDMG] 'SODR00066325'