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

Syntax error: expected something between '(' and the 'current_date' keyword. - response (3) by malli123

$
0
0

above below function is working fine for all the week days, but it is not working on Monday.
My req is when my query run in any day of week(Monday to Sunday) it will pull last week end date and my week start on Monday and ends on Sunday.
Can some one help me to reslove this issue ?
current_date-dayofweek(current_date-2)-1


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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