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

Count of Records within 7 days of Timestamp - response (2) by Chopper1979

$
0
0

Morning Dieter,
Thank you for your reply.
The table I'm using contains over 7 million names and contact dates and times for all contact between April 2012 and May 2012. Average rows per user is 3 and the maximum number of rows within the April 2012 and May 2012 data is in to the thousands. I may have to link the Name to the Customer table in order because I'm only using a partial customer base but that still equates to nearly 4 million Names which should reduce this the maximum number of rows.
I would use 7 days based on the timestamp as it's used as a measure to drive efficiency so the accuracy is important.
My intention is to update each contact record with this count as a new column but it needs to be a repeatable exercise so I may look to create a new table.
I'll run the code you suggested and see how I get on, I appreciate your time on my query.
Dave
 


Viewing all articles
Browse latest Browse all 27759

Trending Articles



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