TRACEYMARYLAND
Programmer
hi my select works but when change select to delete from
it errors on inner join
SELECT * FROM DATAWAREHOUSETEST.DBO.SHELTERPRODUCTS
INNER JOIN VMFG.DBO.WORK_ORDER ON DATAWAREHOUSETEST.DBO.SHELTERPRODUCTS.WORKORDER_BASE_ID = VMFG.DBO.WORK_ORDER.BASE_ID
WHERE VMFG.DBO.WORK_ORDER.STATUS IN ('F', 'R')
To
DELETE FROM DATAWAREHOUSETEST.DBO.SHELTERPRODUCTS
INNER JOIN VMFG.DBO.WORK_ORDER ON DATAWAREHOUSETEST.DBO.SHELTERPRODUCTS.WORKORDER_BASE_ID = VMFG.DBO.WORK_ORDER.BASE_ID
WHERE VMFG.DBO.WORK_ORDER.STATUS IN ('F', 'R')
Any one point me in the right direction
it errors on inner join
SELECT * FROM DATAWAREHOUSETEST.DBO.SHELTERPRODUCTS
INNER JOIN VMFG.DBO.WORK_ORDER ON DATAWAREHOUSETEST.DBO.SHELTERPRODUCTS.WORKORDER_BASE_ID = VMFG.DBO.WORK_ORDER.BASE_ID
WHERE VMFG.DBO.WORK_ORDER.STATUS IN ('F', 'R')
To
DELETE FROM DATAWAREHOUSETEST.DBO.SHELTERPRODUCTS
INNER JOIN VMFG.DBO.WORK_ORDER ON DATAWAREHOUSETEST.DBO.SHELTERPRODUCTS.WORKORDER_BASE_ID = VMFG.DBO.WORK_ORDER.BASE_ID
WHERE VMFG.DBO.WORK_ORDER.STATUS IN ('F', 'R')
Any one point me in the right direction