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 (4) 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 'Jan 10 2009' AND 'Nov 06 2012') (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>