<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Tricky Join: Joining Two Data Sets Based On A Date Range With Aggregations in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Tricky-Join-Joining-Two-Data-Sets-Based-On-A-Date-Range-With/m-p/173477#M33285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi AndyK. Thank you for your reply. Yes the Start and Stop Dates are the drop_dates. So if you look at the table below&amp;nbsp; where the creatives both use the same URL &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Sign Up Now&lt;/SPAN&gt; has a Start Date of &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-align: -webkit-right; background-color: #ffffff;"&gt;12-Aug-13&lt;/SPAN&gt; and its End date is &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-align: -webkit-right; background-color: #ffffff;"&gt;31-Jan-13&lt;/SPAN&gt; which is the Start Date of &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Offer Box&lt;/SPAN&gt;. I just don't know how to break out the start and stop dates since they are both contained in the same variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: rgb(255, 255, 255); width: 444px;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="92"&gt;drop_date&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="96"&gt;URL&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="128"&gt;Creative_Name&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="64"&gt;ResponseDate&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="64"&gt;Clicks&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;12-Aug-13&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;Link.com/south/2ke&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;Sign Up Now&lt;/TD&gt;&lt;TD align="right" class="xl66" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;18-Jan-14&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;97&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;31-Jan-13&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;Link.com/south/2ke&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;Offer Box&lt;/TD&gt;&lt;TD align="right" class="xl66" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;18-Jan-14&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;97&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;12-Aug-13&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;Link.com/south/2ke&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;Sign Up Now&lt;/TD&gt;&lt;TD align="right" class="xl66" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;11-Jan-14&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;89&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;31-Jan-13&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;Link.com/south/2ke&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;Offer Box&lt;/TD&gt;&lt;TD align="right" class="xl66" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;11-Jan-14&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;89&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Feb 2014 18:32:36 GMT</pubDate>
    <dc:creator>RobertNYC</dc:creator>
    <dc:date>2014-02-13T18:32:36Z</dc:date>
    <item>
      <title>Tricky Join: Joining Two Data Sets Based On A Date Range With Aggregations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tricky-Join-Joining-Two-Data-Sets-Based-On-A-Date-Range-With/m-p/173473#M33281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hi all—&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I'm trying to join a data set that contains a frequency of ‘&lt;STRONG&gt;Clicks&lt;/STRONG&gt;’ on a &lt;STRONG&gt;ResponseDate&lt;/STRONG&gt; for specific &lt;STRONG&gt;URLs&lt;/STRONG&gt; to a data set which links the &lt;STRONG&gt;URL&lt;/STRONG&gt; to the ‘&lt;STRONG&gt;Creative Name&lt;/STRONG&gt;’ and ‘&lt;STRONG&gt;drop_date&lt;/STRONG&gt;’ its associated with. I need to bring back a data set that &lt;SPAN style="text-decoration: underline;"&gt;sums&lt;/SPAN&gt; the clicks by&lt;STRONG&gt; drop_date&lt;/STRONG&gt; and &lt;STRONG&gt;URL&lt;/STRONG&gt; for each &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;‘&lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;Creative Name&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;’. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;This is an example of the final product I need: &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="margin-left: 4.65pt; width: 479px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="71"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black;"&gt;drop_date&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="133"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black;"&gt;URL&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="195"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black;"&gt;Creative_Name&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="80"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black;"&gt;Total_Clicks&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="71"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;5/20/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="133"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Link.com/east/2es&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="195"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: black;"&gt;Perf Offer &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="80"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;10&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="71"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;9/30/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="133"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Link.com/west/2ev&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="195"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: black;"&gt;We Want Bonuses&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="80"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="71"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;3/7/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="133"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Link.com/north/2gq&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="195"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: black;"&gt;Bonuse Power &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="80"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="71"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;1/31/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="133"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Link.com/south/2ke&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="195"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: black;"&gt;Offer Box &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="80"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;41&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="71"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;8/12/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="133"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Link.com/south/2ke&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="195"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: black;"&gt;Sign Up Now&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="80"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;21&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 10pt;"&gt;The issue I’m having is if you notice some URLs (Link.com/south/2ke) are used more than once for &lt;/SPAN&gt;&lt;STRONG style="color: #000000; font-size: 10pt; line-height: 1.5em;"&gt;Creative_Names&lt;/STRONG&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 10pt;"&gt; .&amp;nbsp; I need sum all the &lt;/SPAN&gt;&lt;STRONG style="color: #000000; font-size: 10pt; line-height: 1.5em;"&gt;clicks&lt;/STRONG&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 10pt;"&gt; that have a &lt;/SPAN&gt;&lt;STRONG style="color: #000000; font-size: 10pt; line-height: 1.5em;"&gt;Response_Date&lt;/STRONG&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 10pt;"&gt; on or after the &lt;/SPAN&gt;&lt;STRONG style="color: #000000;"&gt;drop_date&lt;/STRONG&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 10pt;"&gt; and not the clicks that happen when the same URL is used again for another &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; color: #000000;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em; color: #000000;"&gt;Creative_Name&lt;/STRONG&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 10pt;"&gt;. So the &lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em; color: #000000;"&gt;Creative_Name&lt;/STRONG&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 10pt;"&gt;&lt;EM&gt; ‘Offer Box’&lt;/EM&gt;&amp;nbsp; had a drop_date of 1/31/2013 and the link associated with it was ‘Link.com/south/2ke’&amp;nbsp; and this link was then assigned to a new &lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em; color: #000000;"&gt;Creative_Name&lt;/STRONG&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 10pt;"&gt;&lt;EM&gt; Sign Up Now&lt;/EM&gt;&amp;nbsp; on&amp;nbsp; 8/12/2013. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 10pt;"&gt;I have included two sample data sets &lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em; color: #000000;"&gt;URL_Responses &lt;/STRONG&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 10pt;"&gt;and &lt;/SPAN&gt;&lt;STRONG style=": ; line-height: 1.5em; color: #000000; font-size: 10pt;"&gt;Creative_Drops. &lt;/STRONG&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 10pt;"&gt; Any &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;assistance&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN style="line-height: 1.5em;"&gt; is greatly &lt;/SPAN&gt;&lt;SPAN style="line-height: 19.5px;"&gt;appreciated&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;!!! &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 10pt;"&gt;Thanks!!! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;data Creative_Drops;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt; length drop_date 8 URL $20 Creative_Name $30; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt; INPUT drop_date : anydtdte9.&amp;nbsp; URL $&amp;nbsp; Creative_Name $20.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt; format drop_date date9.; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;datalines; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;5/20/2013 Link.com/east/2es Perf Offer &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;9/30/2013 Link.com/west/2ev We Want Bonuses&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;3/7/2013 Link.com/north/2gq Bonuse Power &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;1/31/2013 Link.com/south/2ke Offer Box &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;8/12/2013 Link.com/south/2ke Sign Up Now&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;data URL_Responses;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt; length ResponseDate 8 URL $30 Clicks 4; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt; INPUT ResponseDate : anydtdte9.&amp;nbsp; URL $&amp;nbsp; Clicks;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt; format ResponseDate date9.; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&amp;nbsp;&amp;nbsp; datalines; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;3/2/13 Link.com/south/2ke 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;4/6/13 Link.com/south/2ke 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;2/23/13 Link.com/south/2ke 32&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;5/11/13 Link.com/south/2ke 41&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;5/4/13 Link.com/south/2ke 21&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;6/22/13 Link.com/south/2ke 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;1/26/13 Link.com/south/2ke 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;2/9/13 Link.com/south/2ke 27&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;2/2/13 Link.com/south/2ke 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;1/19/13 Link.com/south/2ke 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;6/8/13 Link.com/south/2ke 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;6/15/13 Link.com/south/2ke 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;4/20/13 Link.com/south/2ke 9&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;3/9/13 Link.com/south/2ke 12&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;5/18/13 Link.com/south/2ke 19&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;8/17/13 Link.com/south/2ke 8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;9/21/13 Link.com/south/2ke 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;5/25/13 Link.com/south/2ke 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;1/4/14 Link.com/south/2ke 19&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;9/14/13 Link.com/south/2ke 6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;6/1/13 Link.com/south/2ke 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;6/29/13 Link.com/south/2ke 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;8/31/13 Link.com/south/2ke 57&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;8/3/13 Link.com/south/2ke 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;1/11/14 Link.com/south/2ke 89&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;1/18/14 Link.com/south/2ke 97&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;9/7/13 Link.com/south/2ke 53&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;12/28/13 Link.com/south/2ke 5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;10/12/13 Link.com/south/2ke 5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;2/1/14 Link.com/south/2ke 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;1/25/14 Link.com/south/2ke 11&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;2/16/13 Link.com/south/2ke 12&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;8/24/13 Link.com/south/2ke 51&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;9/28/13 Link.com/south/2ke 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;12/21/13 Link.com/south/2ke 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;3/30/13 Link.com/north/2gq 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;4/13/13 Link.com/north/2gq 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;5/11/13 Link.com/north/2gq 6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;5/18/13 Link.com/north/2gq 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;6/22/13 Link.com/north/2gq 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;3/16/13 Link.com/north/2gq 29&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;3/9/13 Link.com/north/2gq 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;4/27/13 Link.com/north/2gq 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;6/1/13 Link.com/north/2gq 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;5/25/13 Link.com/north/2gq 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;1/4/14 Link.com/north/2gq 5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;11/16/13 Link.com/north/2gq 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;12/7/13 Link.com/north/2gq 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;12/14/13 Link.com/north/2gq 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;1/18/14 Link.com/north/2gq 9&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;4/6/13 Link.com/north/2gq 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;12/1/12 Link.com/west/2ev 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;12/15/12 Link.com/west/2ev 9&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;1/12/13 Link.com/west/2ev 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;2/23/13 Link.com/west/2ev 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;3/30/13 Link.com/west/2ev 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;1/5/13 Link.com/west/2ev 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;11/24/12 Link.com/west/2ev 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;5/11/13 Link.com/west/2ev 62&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;12/29/12 Link.com/west/2ev 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;4/13/13 Link.com/west/2ev 93&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;5/4/13 Link.com/west/2ev 102&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;4/27/13 Link.com/west/2ev 184&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;6/15/13 Link.com/west/2ev 20&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;12/22/12 Link.com/west/2ev 11&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;6/1/13 Link.com/west/2ev 15&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;7/20/13 Link.com/west/2ev 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;3/9/13 Link.com/west/2ev 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;5/4/13 Link.com/west/2ev 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;7/27/13 Link.com/west/2ev 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;4/13/13 Link.com/west/2ev 78&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;8/24/13 Link.com/west/2ev 13&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;3/16/13 Link.com/west/2ev 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;8/31/13 Link.com/west/2ev 6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;4/27/13 Link.com/west/2ev 5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;6/29/13 Link.com/west/2ev 8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;5/18/13 Link.com/west/2ev 31&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;4/20/13 Link.com/west/2ev 420&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;4/20/13 Link.com/west/2ev 39&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;9/28/13 Link.com/west/2ev 5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;9/28/13 Link.com/west/2ev 5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;8/3/13 Link.com/west/2ev 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;12/7/13 Link.com/west/2ev 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;6/22/13 Link.com/west/2ev 12&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;10/26/13 Link.com/west/2ev 13&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;7/6/13 Link.com/west/2ev 6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;11/2/13 Link.com/west/2ev 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;5/25/13 Link.com/west/2ev 17&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;9/7/13 Link.com/west/2ev 18&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;8/10/13 Link.com/west/2ev 16&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;11/30/13 Link.com/west/2ev 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;10/5/13 Link.com/west/2ev 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;10/19/13 Link.com/west/2ev 34&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;11/23/13 Link.com/west/2ev 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;1/25/14 Link.com/west/2ev 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;8/24/13 Link.com/west/2ev 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;8/17/13 Link.com/west/2ev 7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;9/14/13 Link.com/west/2ev 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;11/16/13 Link.com/west/2ev 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;10/12/13 Link.com/west/2ev 21&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;9/21/13 Link.com/west/2ev 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;10/5/13 Link.com/west/2ev 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;12/21/13 Link.com/west/2ev 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;2/1/14 Link.com/west/2ev 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;7/14/12 Link.com/west/2ev 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;7/28/12 Link.com/east/2es 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;9/22/12 Link.com/east/2es 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;7/14/12 Link.com/east/2es 23&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;8/11/12 Link.com/east/2es 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;12/1/12 Link.com/east/2es 9&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;12/15/12 Link.com/east/2es 278&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;8/18/12 Link.com/east/2es 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;1/19/13 Link.com/east/2es 15&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;1/26/13 Link.com/east/2es 13&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;3/9/13 Link.com/east/2es 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;9/29/12 Link.com/east/2es 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;12/8/12 Link.com/east/2es 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;3/2/13 Link.com/east/2es 8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;2/23/13 Link.com/east/2es 17&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;12/29/12 Link.com/east/2es 78&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;4/13/13 Link.com/east/2es 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;12/1/12 Link.com/east/2es 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;2/2/13 Link.com/east/2es 13&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;3/30/13 Link.com/east/2es 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;5/18/13 Link.com/east/2es 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;12/22/12 Link.com/east/2es 64&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;1/5/13 Link.com/east/2es 64&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;6/1/13 Link.com/east/2es 9&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;2/9/13 Link.com/east/2es 6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;6/8/13 Link.com/east/2es 5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;4/27/13 Link.com/east/2es 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;7/13/13 Link.com/east/2es 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;2/16/13 Link.com/east/2es 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;3/16/13 Link.com/east/2es 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;5/18/13 Link.com/east/2es 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;6/1/13 Link.com/east/2es 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;9/28/13 Link.com/east/2es 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;4/20/13 Link.com/east/2es 8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;5/4/13 Link.com/east/2es 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;3/23/13 Link.com/east/2es 6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;8/31/13 Link.com/east/2es 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;11/2/13 Link.com/east/2es 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;5/25/13 Link.com/east/2es 38&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;10/5/13 Link.com/east/2es 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;6/22/13 Link.com/east/2es 9&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;8/10/13 Link.com/east/2es 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;9/14/13 Link.com/east/2es 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;6/29/13 Link.com/east/2es 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;12/14/13 Link.com/east/2es 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;1/18/14 Link.com/east/2es 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;12/7/13 Link.com/east/2es 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;8/3/13 Link.com/east/2es 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;1/11/14 Link.com/east/2es 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;9/21/13 Link.com/east/2es 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;10/12/13 Link.com/east/2es 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;2/1/14 Link.com/east/2es 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;7/21/12 Link.com/east/2es 20&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;11/17/12 Link.com/east/2es 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;12/8/12 Link.com/east/2es 348&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;1/12/13 Link.com/east/2es 35&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;4/6/13 Link.com/east/2es 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;7/20/13 Link.com/east/2es 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;8/24/13 Link.com/east/2es 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;9/7/13 Link.com/east/2es 1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;1/25/14 Link.com/east/2es 1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 15:56:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tricky-Join-Joining-Two-Data-Sets-Based-On-A-Date-Range-With/m-p/173473#M33281</guid>
      <dc:creator>RobertNYC</dc:creator>
      <dc:date>2014-02-13T15:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Tricky Join: Joining Two Data Sets Based On A Date Range With Aggregations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tricky-Join-Joining-Two-Data-Sets-Based-On-A-Date-Range-With/m-p/173474#M33282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd suggest joining first and then aggregating to simplify things.&amp;nbsp; I think your join should be a left join on URL_responses with a WHERE &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Creative_Drops.&lt;/SPAN&gt;BeginDate &amp;lt; &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; URL_Responses&lt;/SPAN&gt;.ResponseDate &amp;lt;= &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Creative_Drops&lt;/SPAN&gt;.DropDate.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BeginDate would be created with an extra cleaning step.&amp;nbsp; Loop through the URL and retain to get the begin date of the next record.&amp;nbsp; So for example, Sign Up Now must have a start date of 1/31/2013 to go with its drop date of 8/12/2013.&amp;nbsp; Once you have the start and drop for each campaign, it should be straightforward to find which interval your ResponseDate lands in.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As it currently stands, it's difficult for me to tell when things start and stop so it will probably be difficult for SAS as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 17:11:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tricky-Join-Joining-Two-Data-Sets-Based-On-A-Date-Range-With/m-p/173474#M33282</guid>
      <dc:creator>AndyK_</dc:creator>
      <dc:date>2014-02-13T17:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Tricky Join: Joining Two Data Sets Based On A Date Range With Aggregations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tricky-Join-Joining-Two-Data-Sets-Based-On-A-Date-Range-With/m-p/173475#M33283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this do what you want? I create the intermediate data set analyze so you can verify that the selection is getting the records you intend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; create table analyze as &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; select a.*, b.ResponseDate,b.clicks &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; from Creative_Drops as a left join URL_Responses as b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on b.ResponseDate ge a.drop_date and a.url=b.url;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; create table result as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; select drop_date, URL, Creative_Name, sum(clicks) as Total_Clicks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; from analyze&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; group by drop_date, URL, Creative_Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 17:19:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tricky-Join-Joining-Two-Data-Sets-Based-On-A-Date-Range-With/m-p/173475#M33283</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-02-13T17:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Tricky Join: Joining Two Data Sets Based On A Date Range With Aggregations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tricky-Join-Joining-Two-Data-Sets-Based-On-A-Date-Range-With/m-p/173476#M33284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ballard! Thank you for your reply. I think the above is close.&amp;nbsp; The issue is I only want to Clicks to sum for each creative during the time range between the drop dates. A given URL can only be assigned to one creative at a given time.&amp;nbsp; So lets say &lt;STRONG&gt;Creative A &lt;/STRONG&gt;and&lt;STRONG&gt; Creative B &lt;/STRONG&gt;use the same URL but the can't use it at the same time.&amp;nbsp; Creative A has a drop date of 1/20/2013 I need to sum all the responses until Creative B is assigned to the URL on drop date 3/20/2013.&amp;nbsp; So the start date and end date are the drop dates for the creatives. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its looks like the all of the clicks are being summed regardless of when the url was assigned or unassigned. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="444"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="92"&gt;drop_date&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="96"&gt;URL&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="128"&gt;Creative_Name&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;ResponseDate&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Clicks&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="20" style="border-top: none;"&gt;12-Aug-13&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Link.com/south/2ke&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Sign Up Now&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;18-Jan-14&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;97&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="20" style="border-top: none;"&gt;31-Jan-13&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Link.com/south/2ke&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Offer Box&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;18-Jan-14&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;97&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="20" style="border-top: none;"&gt;12-Aug-13&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Link.com/south/2ke&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Sign Up Now&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;11-Jan-14&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;89&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="20" style="border-top: none;"&gt;31-Jan-13&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Link.com/south/2ke&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Offer Box&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;11-Jan-14&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;89&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 18:18:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tricky-Join-Joining-Two-Data-Sets-Based-On-A-Date-Range-With/m-p/173476#M33284</guid>
      <dc:creator>RobertNYC</dc:creator>
      <dc:date>2014-02-13T18:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Tricky Join: Joining Two Data Sets Based On A Date Range With Aggregations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tricky-Join-Joining-Two-Data-Sets-Based-On-A-Date-Range-With/m-p/173477#M33285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi AndyK. Thank you for your reply. Yes the Start and Stop Dates are the drop_dates. So if you look at the table below&amp;nbsp; where the creatives both use the same URL &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Sign Up Now&lt;/SPAN&gt; has a Start Date of &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-align: -webkit-right; background-color: #ffffff;"&gt;12-Aug-13&lt;/SPAN&gt; and its End date is &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-align: -webkit-right; background-color: #ffffff;"&gt;31-Jan-13&lt;/SPAN&gt; which is the Start Date of &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Offer Box&lt;/SPAN&gt;. I just don't know how to break out the start and stop dates since they are both contained in the same variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: rgb(255, 255, 255); width: 444px;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="92"&gt;drop_date&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="96"&gt;URL&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="128"&gt;Creative_Name&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="64"&gt;ResponseDate&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="64"&gt;Clicks&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;12-Aug-13&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;Link.com/south/2ke&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;Sign Up Now&lt;/TD&gt;&lt;TD align="right" class="xl66" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;18-Jan-14&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;97&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;31-Jan-13&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;Link.com/south/2ke&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;Offer Box&lt;/TD&gt;&lt;TD align="right" class="xl66" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;18-Jan-14&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;97&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;12-Aug-13&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;Link.com/south/2ke&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;Sign Up Now&lt;/TD&gt;&lt;TD align="right" class="xl66" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;11-Jan-14&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;89&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;31-Jan-13&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;Link.com/south/2ke&lt;/TD&gt;&lt;TD class="xl67" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;Offer Box&lt;/TD&gt;&lt;TD align="right" class="xl66" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;11-Jan-14&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;89&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 18:32:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tricky-Join-Joining-Two-Data-Sets-Based-On-A-Date-Range-With/m-p/173477#M33285</guid>
      <dc:creator>RobertNYC</dc:creator>
      <dc:date>2014-02-13T18:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Tricky Join: Joining Two Data Sets Based On A Date Range With Aggregations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tricky-Join-Joining-Two-Data-Sets-Based-On-A-Date-Range-With/m-p/173478#M33286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try something like this, though you may want to initialize your variable to null at a different level depending on complexity.&amp;nbsp; I'd suggest commenting out the IF LASTs so you can see the output before you summarize.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data Creative_Drops_new;&lt;/P&gt;&lt;P&gt;set Creative_Drops;&lt;/P&gt;&lt;P&gt;by URL Creative_Name;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if first.URL then do;&lt;/P&gt;&lt;P&gt;BeginDate=.&lt;/P&gt;&lt;P&gt;if first.Creative_Name then do;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if DropDate ne . then BeginDate=DropDate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*if last.URL then do;&lt;/P&gt;&lt;P&gt;*if last.Creative_Name then do;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;retain BeginDate;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 18:55:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tricky-Join-Joining-Two-Data-Sets-Based-On-A-Date-Range-With/m-p/173478#M33286</guid>
      <dc:creator>AndyK_</dc:creator>
      <dc:date>2014-02-13T18:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Tricky Join: Joining Two Data Sets Based On A Date Range With Aggregations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tricky-Join-Joining-Two-Data-Sets-Based-On-A-Date-Range-With/m-p/173479#M33287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi AndyK-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting all null values for DropDate and BeginDate not sure why? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data Creative_Drops_new;&lt;/P&gt;&lt;P&gt;set Creative_Drops;&lt;/P&gt;&lt;P&gt;by URL Creative_Name;&lt;/P&gt;&lt;P&gt;if first.URL then do;&lt;/P&gt;&lt;P&gt;BeginDate=.; &lt;/P&gt;&lt;P&gt;if first.Creative_Name then do;&lt;/P&gt;&lt;P&gt;if DropDate ne . then BeginDate=DropDate;&lt;/P&gt;&lt;P&gt;if last.URL then do;&lt;/P&gt;&lt;P&gt;if last.Creative_Name then do;&lt;/P&gt;&lt;P&gt;retain BeginDate;&lt;/P&gt;&lt;P&gt;end; &lt;/P&gt;&lt;P&gt;end; &lt;/P&gt;&lt;P&gt;end; &lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 19:43:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tricky-Join-Joining-Two-Data-Sets-Based-On-A-Date-Range-With/m-p/173479#M33287</guid>
      <dc:creator>RobertNYC</dc:creator>
      <dc:date>2014-02-13T19:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Tricky Join: Joining Two Data Sets Based On A Date Range With Aggregations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tricky-Join-Joining-Two-Data-Sets-Based-On-A-Date-Range-With/m-p/173480#M33288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like it's treating them as uninitiated variables...I think yours is actually named drop_date so you might need to change that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 19:53:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tricky-Join-Joining-Two-Data-Sets-Based-On-A-Date-Range-With/m-p/173480#M33288</guid>
      <dc:creator>AndyK_</dc:creator>
      <dc:date>2014-02-13T19:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Tricky Join: Joining Two Data Sets Based On A Date Range With Aggregations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tricky-Join-Joining-Two-Data-Sets-Based-On-A-Date-Range-With/m-p/173481#M33289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect!&amp;nbsp; Thanks!&amp;nbsp; Last question:&amp;nbsp; how would you suggest I incorporate the two programs (yours and the one which sums the clicks&amp;nbsp; since&amp;nbsp; drop_date and beginDate will be the same in some situations? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 614px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl67" height="40" width="144"&gt;drop_date&lt;/TD&gt;&lt;TD class="xl67" width="184"&gt;URL&lt;/TD&gt;&lt;TD class="xl67" width="160"&gt;Creative_Name&lt;/TD&gt;&lt;TD class="xl67" width="126"&gt;BeginDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="38" width="144"&gt;20-May-13&lt;/TD&gt;&lt;TD class="xl66" width="184"&gt;Link.com/east/2es&lt;/TD&gt;&lt;TD class="xl66" width="160"&gt;Perf Offer&lt;/TD&gt;&lt;TD align="right" class="xl65" width="126"&gt;20-May-13&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="38" width="144"&gt;7-Mar-13&lt;/TD&gt;&lt;TD class="xl66" width="184"&gt;Link.com/north/2gq&lt;/TD&gt;&lt;TD class="xl66" width="160"&gt;Bonuse Power&lt;/TD&gt;&lt;TD align="right" class="xl65" width="126"&gt;7-Mar-13&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="38" width="144"&gt;31-Jan-13&lt;/TD&gt;&lt;TD class="xl66" width="184"&gt;Link.com/south/2ke&lt;/TD&gt;&lt;TD class="xl66" width="160"&gt;Offer Box&lt;/TD&gt;&lt;TD align="right" class="xl65" width="126"&gt;31-Jan-13&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="38" width="144"&gt;12-Aug-13&lt;/TD&gt;&lt;TD class="xl66" width="184"&gt;Link.com/south/2ke&lt;/TD&gt;&lt;TD class="xl66" width="160"&gt;Sign Up Now&lt;/TD&gt;&lt;TD align="right" class="xl65" width="126"&gt;31-Jan-13&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="34" width="144"&gt;30-Sep-13&lt;/TD&gt;&lt;TD class="xl66" width="184"&gt;Link.com/west/2ev&lt;/TD&gt;&lt;TD class="xl66" width="160"&gt;We Want Bonuses&lt;/TD&gt;&lt;TD align="right" class="xl65" width="126"&gt;30-Sep-13&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data Creative_Drops_new;&lt;/P&gt;&lt;P&gt;set Creative_Drops;&lt;/P&gt;&lt;P&gt;by URL Creative_Name;&lt;/P&gt;&lt;P&gt;if first.URL then do;&lt;/P&gt;&lt;P&gt;BeginDate=.; &lt;/P&gt;&lt;P&gt;if first.Creative_Name then do;&lt;/P&gt;&lt;P&gt;if Drop_Date ne . then BeginDate=Drop_Date;&lt;/P&gt;&lt;P&gt;if last.URL then do;&lt;/P&gt;&lt;P&gt;if last.Creative_Name then do;&lt;/P&gt;&lt;P&gt;retain BeginDate;&lt;/P&gt;&lt;P&gt;format BeginDate date9.; &lt;/P&gt;&lt;P&gt;end; &lt;/P&gt;&lt;P&gt;end; &lt;/P&gt;&lt;P&gt;end; &lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc sql;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; create table analyze as&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; select a.*, b.ResponseDate,b.clicks&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; from Creative_Drops as a left join URL_Responses as b&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on b.ResponseDate ge a.drop_date and a.url=b.url;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; create table result as&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; select drop_date, URL, Creative_Name, sum(clicks) as Total_Clicks&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; from analyze&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; group by drop_date, URL, Creative_Name&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="branch"&gt;&lt;A name="IDX"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 20:11:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tricky-Join-Joining-Two-Data-Sets-Based-On-A-Date-Range-With/m-p/173481#M33289</guid>
      <dc:creator>RobertNYC</dc:creator>
      <dc:date>2014-02-13T20:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Tricky Join: Joining Two Data Sets Based On A Date Range With Aggregations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tricky-Join-Joining-Two-Data-Sets-Based-On-A-Date-Range-With/m-p/173482#M33290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd suggest using a dummy start date, like 1/1/1980, to clean that up.&amp;nbsp; You can run another data step to check when the dates are equal, or even update your current one (initialize to 1/1/1980 and check for that date instead of blank).&amp;nbsp; That way you can be certain your click lands in the window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 20:29:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tricky-Join-Joining-Two-Data-Sets-Based-On-A-Date-Range-With/m-p/173482#M33290</guid>
      <dc:creator>AndyK_</dc:creator>
      <dc:date>2014-02-13T20:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Tricky Join: Joining Two Data Sets Based On A Date Range With Aggregations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tricky-Join-Joining-Two-Data-Sets-Based-On-A-Date-Range-With/m-p/173483#M33291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry-- last one, promise are you saying set up like this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data Creative_Drops_new;&lt;/P&gt;&lt;P&gt;set Creative_Drops;&lt;/P&gt;&lt;P&gt;by URL Creative_Name;&lt;/P&gt;&lt;P&gt;if first.URL then do;&lt;/P&gt;&lt;P&gt;BeginDate=&lt;STRONG&gt;'1JAN1980'd; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if first.Creative_Name then do;&lt;/P&gt;&lt;P&gt;if Drop_Date ne . then BeginDate=Drop_Date;&lt;/P&gt;&lt;P&gt;if last.URL then do;&lt;/P&gt;&lt;P&gt;if last.Creative_Name then do;&lt;/P&gt;&lt;P&gt;retain BeginDate;&lt;/P&gt;&lt;P&gt;format BeginDate date9.; &lt;/P&gt;&lt;P&gt;end; &lt;/P&gt;&lt;P&gt;end; &lt;/P&gt;&lt;P&gt;end; &lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 21:46:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tricky-Join-Joining-Two-Data-Sets-Based-On-A-Date-Range-With/m-p/173483#M33291</guid>
      <dc:creator>RobertNYC</dc:creator>
      <dc:date>2014-02-13T21:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Tricky Join: Joining Two Data Sets Based On A Date Range With Aggregations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tricky-Join-Joining-Two-Data-Sets-Based-On-A-Date-Range-With/m-p/173484#M33292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No I'd still start with null, but initialize it for the first record.&amp;nbsp; Also I think you need to check against the begin date, not the drop date (since it's non-null for everyone).&amp;nbsp; So:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BeginDate=.&lt;/P&gt;&lt;P&gt;if BeginDate eq . then BeginDate = '1Jan1980'd;&lt;/P&gt;&lt;P&gt;if BeginDate ne . then BeginDate = Drop_Date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should give your first record a 1/1/1980 start, but rely on the for other records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 23:27:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tricky-Join-Joining-Two-Data-Sets-Based-On-A-Date-Range-With/m-p/173484#M33292</guid>
      <dc:creator>AndyK_</dc:creator>
      <dc:date>2014-02-13T23:27:07Z</dc:date>
    </item>
  </channel>
</rss>

