Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Create volatile table failed 3707 expected Unicode delimited identifier... - response (1) by Fred

$
0
0

The "derived table expression" in the FROM clause must have a name, e.g.
and REQ.APRVD_INPAT_DAYS_NBR > 0
) MyDT
)
WITH DATA
But the outer SELECT isn't adding any value. Why not simplify?
CREATE VOLATILE TABLE STRENLR.TriMedAdm AS
( Select
REQ.CLNCL_SOR_CD As ClnSorCd,
REQ.RFRNC_NBR As RefNbr,
REQ.MBR_KEY As MembKey,
REQ.SRC_CASE_TYPE_CD As SrcCaseTypeCd,
REQ.PLACE_OF_SRVC_SMRY_TXT As PlaceSrvSumDesc,
REQ.ADMT_DT As AdmDt,
REQ.PRMRY_DIAG_CD As PrimDxCd,
REQ.ACTL_LOS_NBR As ActlLOSNbr
From UM_RQST REQ
Where (REQ.CLNCL_SOR_CD IN ('870') and REQ.MBRSHP_SOR_CD IN ('868','869', '886'))
and REQ.ADMT_DT = '2013-07-24'
and REQ.CASE_TYPE_CD In ('MED','SUR','MAT')
and REQ.AUTHRZN_STTS_CD = 'A'
and REQ.APRVD_INPAT_DAYS_NBR > 0
)
WITH DATA
PRIMARY INDEX (MembKey)
ON COMMIT PRESERVE ROWS;

 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>