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

Syntax error: expected something between '(' and the 'current_date' keyword. - forum topic by malli123

$
0
0

I am faceing the below for my query. If i run the bold query separately it is running correct. 
Error : Syntax error: expected something between '(' and the 'current_date' keyword.
 
 
select s22.wk_dt
from attr_table s21
cross join time s22
where (s21.DC_LOC_ID,s22.wk_dt) IN (SEL A.DC, B.wk_dt FROM fact B
JOIN (SELECT DC_LOC_ID DC, MAX(INV_DT) inv_DT FROM INV_SCH GROUP BY DC_LOC_ID where pinv_dt < current_date-dayofweek(current_date)+1) A
ON B.DC_LOC_ID=A.DC
group by s22.FSCL_WK_END_DT.
 
Help me out !!

Forums: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles



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