CREATE VIEW [Demo].[INVC_T] AS
SELECT
R.ACCT_DT],
R.SPLIT_FROM_INVC_NO],
R.bREMIT_TO_ADDR_NO],
R._USER_INVC_NO],
R.RUPDT_PERS_NO],
R.RUPDT_DT_TIME],
R.TOTALS_UPDT_DT_TIME],
R.SHIP_TO_ADDR_NO],
R.>SEG_NO],
R._RECUR_INVC_NO],
R.[PRINT_INVC_STATUS],
R.RPMT_TERMS_CD],
R.RJE_NO],
R.rINVC_TYPE_CD],
R.CINVC_STATUS_CD],
R.,INVC_SRC_CD],
R.YINVC_NO],
R.INVC_DUE_DT],
CAST( (INVC_DT]) >= DATEADD(week, -10, GETDATE()) AS datetime) AS INVC_DT],
R.,INSUR_AMT],
R.[FRGHT_AMT],
R.kCUST_TYPE_CD],
R. CURR_RATE],
R.CURR_CD],
R.CLOSE_DT],
R.,BILL_TO_CUST_NO],
R.CACCT_YR],
R.[ACCT_PER],
R.PMT_METH_CD],
R.CREDIT_CARD_FLAG],
DW_Id],
_DW_Batch],
RDW_SourceCode],
DW_TimeStamp],
DW_ODXBatchNumber],
DW_ODXBatchId]
FROM
Demo].DINVC_R] R
GO
above script error is what im getting please let me know what is wrong or where im getting it incorrect,
below is snippet which im using,
(FIELD) >= DATEADD(week, -10, GETDATE())