Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Need help with selecting distinct event date within last 180 days - response (6) by Mathuram

$
0
0
Try this query... SELECT A.SubscriberKey, B.CreatedDate, EventDate,Count(EventDate) as "count" FROM _Open A JOIN _ListSubscribers B ON A.SubscriberKey = B.SubscriberKey WHERE (B.ListID = '10630') AND (B.CreatedDate Between 1090110 AND 1121106) (AND EventDate > (DATE-180)) Group By A.SubscriberKey,B.CreatedDate,EventDate  

Viewing all articles
Browse latest Browse all 27759

Trending Articles



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