Hello,
I've declared a variable as Table and am trying to fill it. This works fine:
insert into @tblZeroUnit
select FacilityNbr, orderid, detailSeqNbr, SKU, SkuOriginalqty, skushipqty, skuclass, skuuom from database_name.dbo.orderdet where orderid = @orderid and skushipqty = 0
However the...