ORA-00936: 缺少表达式 Teradata

ORA-00936: Missing Expression Teradata

我无法确定我的代码中的问题所在。任何帮助将不胜感激。使用 Teradata 时返回错误 "SELECT Failed. ORA-00936: missing expression"。

SELECT

,CR.CLAIMNUMBER 
,CR.LINENUMBER  
,SUBSTR(CLM.SUBMITTERCLAIMNUMBER,3,11) AS CLM_NBR
,CR.SEQNUMBER   
,MAX(CR.SEQNUMBER) AS MAX_SEQ 
,CR.VOLUME  
,CR.VOLUMETYPE  
,CR.RATE    
,CR.RATETYPE    
,CR.ALLOWED     
FROM PRICER.CLMREPRICINGDETAIL CR   
INNER JOIN PRICER.CLMCLAIMS CLM ON  CLM.CLAIMNUMBER = CR.CLAIMNUMBER    
INNER JOIN PRICER.CLMCLAIMITEMS CLMP ON CLM.CLAIMNUMBER = CLMP.CLAIMNUMBER AND CLM.OWNERID = CLMP.OWNERID   
INNER JOIN PRICER.CLMINSURED CLMI ON CLM.CLAIMNUMBER = CLMI.CLAIMNUMBER AND CLM.OWNERID = CLMI.OWNERID  

WHERE TRADEPARTNERID IN ('NationalNonHouse','NationalHouse')

AND SUBSTR(CLM.SUBMITTERCLAIMNUMBER,3,11) IN ('17304CD2083','17297CA4107')  
group by 1,2,3,4,5,6,7,8,9,10   
having CR.SEQNUMBER =  MAX_SEQ 
;

我会去掉 SELECT:

后面的逗号
SELECT CR.CLAIMNUMBER 
, CR.LINENUMBER  
, SUBSTR(CLM.SUBMITTERCLAIMNUMBER,3,11) AS CLM_NBR
, CR.SEQNUMBER   
, MAX(CR.SEQNUMBER) AS MAX_SEQ 
, CR.VOLUME  
, CR.VOLUMETYPE  
, CR.RATE    
, CR.RATETYPE    
, CR.ALLOWED     
FROM PRICER.CLMREPRICINGDETAIL CR   
INNER JOIN PRICER.CLMCLAIMS CLM ON  CLM.CLAIMNUMBER = CR.CLAIMNUMBER    
INNER JOIN PRICER.CLMCLAIMITEMS CLMP ON CLM.CLAIMNUMBER = CLMP.CLAIMNUMBER AND CLM.OWNERID = CLMP.OWNERID   
INNER JOIN PRICER.CLMINSURED CLMI ON CLM.CLAIMNUMBER = CLMI.CLAIMNUMBER AND CLM.OWNERID = CLMI.OWNERID  

WHERE TRADEPARTNERID IN ('NationalNonHouse','NationalHouse')
AND SUBSTR(CLM.SUBMITTERCLAIMNUMBER,3,11) IN ('17304CD2083','17297CA4107')  
group by 1,2,3,4,5,6,7,8,9,10   
having CR.SEQNUMBER =  MAX_SEQ;