SeaninSeattle
IS-IT--Management
I wrote the following script to update a field on a table. That table is related to two others by customer number and document number. When I run this, I get a completion notice, but no rows (and I know it's supposed get one row I prepared for it). Anyone see where I've screwed up?
Thanks,
//sse
UPDATE SOPShipmentNotificationHeader
SET SOPShipmentNotificationHeader.Email = SY01200.INET1
FROM SY01200, SOP10100
WHERE SOPShipmentNotificationHeader.CustomerID = SOP10100.CUSTNMBR
AND SOPShipmentNotificationHeader.CustomerID = SY01200.Master_ID
AND SOPShipmentNotificationHeader.DocumentNumber = SOP10100.SOPNUMBE
AND SOP10100.PRSTADCD = SY01200.ADRSCODE
Sean Engle
Admin/DirIS
Thanks,
//sse
UPDATE SOPShipmentNotificationHeader
SET SOPShipmentNotificationHeader.Email = SY01200.INET1
FROM SY01200, SOP10100
WHERE SOPShipmentNotificationHeader.CustomerID = SOP10100.CUSTNMBR
AND SOPShipmentNotificationHeader.CustomerID = SY01200.Master_ID
AND SOPShipmentNotificationHeader.DocumentNumber = SOP10100.SOPNUMBE
AND SOP10100.PRSTADCD = SY01200.ADRSCODE
Sean Engle
Admin/DirIS