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

For each distinct string value, find the last date and tell me the value in the third column

$
0
0

Objective

For each distrinct value, find the latest date in the second column and the corresponding text value in the third column.

 

I have three columns:  Guest, Host and Report Date.  For each guest, I need to find the corresponding host name for the latest date. Yet,  each guest has multiple hosts on different dates.  Here is an example:

GuestHostReport Date
Server AHost A12/1/2016
Server AHost A12/5/2016
Server AHost B12/19/2016

 

  

The last row is the value I want to return.  The Guest list is about 20,000 long so I want to return for each distrinct guest, a host name and the latest report date.

 

Thank you,

 

Tim


Viewing all articles
Browse latest Browse all 216047

Trending Articles



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