SELECT est_delivery_datetime,service_code,*
FROM shipment (nolock)
WHERE DATEPART(w,est_delivery_datetime) IN (1)
and CONVERT (char(7),est_delivery_datetime ,121)>='2016-06'
and service_code ='ND'
update shipment
set est_delivery_datetime =GETDATE()+1 +convert(char(10),est_delivery_datetime,114)
WHERE DATEPART(w,est_delivery_datetime) IN (1)
and CONVERT (char(7),est_delivery_datetime ,121)>='2016-06'
and service_code ='ND'
UPDATE dbo.Employees SET
BirthDate = DATEADD(D,1,GETDATE())
WHERE DATEPART(W,BirthDate) = 1
AND CAST(BirthDate AS DATE) >= CAST('06/01/2016' AS DATE)
AND Region = 'ND'