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

query on CSUM - response (6) by vuyyuru

$
0
0

SEL t1.name, t2.calendar_date
FROM (SEL name FROM hbarch.ram GROUP BY 1) AS t1, sys_calendar.Calendar AS t2
WHERE t2.calendar_date NOT IN (SEL tran_date FROM hbarch.ram WHERE name = t1.name)
AND t2.calendar_date >=(SEL MIN(tran_date) FROM hbarch.ram WHERE name = t1.name)
AND t2.calendar_date <= CURRENT_DATE


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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