DATEADD takes three arguments: a control string, an integer delta value, and a timestamp value. It returns a timestamp that applies the delta value to the specified part of the original timestamp. The operation carries if the sum of the original field value and the delta is illegal:Timestamp DATEADD( control Varchar, delta Integer, value Timestamp )SELECT ORDERS.ORDERID, ORDERS.SHIPBYDATE,
DATEADD('d', 14, ORDERS.SHIPBYDATE) AS ExpectedDelivery
|
|
Copyright Actuate Corporation 2012 |