Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213916

Getting latest date from date column where there are multiples of a value in another column

$
0
0

Hi,

 

I have a table with two columns; a SiteID column (number) where there could be mutiple rows for each site ID and a DateAdded field which would have the date the equipment was added to the site.

 

I want to create a another column which compares the dates for mulitple entries of the same SiteID and returns the latest date of how ever many there are

 

SiteID       Date Added                  Last Date

--------|-------------------------|--------------

1         |    1/1/2016 00:00:00

1         |    15/5/2016 00:00:00

1         |      2/11/2016 00:00:00

1         |                                     |  2/11/2016 00:00:00

 

Can this be done?


Viewing all articles
Browse latest Browse all 213916

Trending Articles



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