Forum Discussion

salil's avatar
salil
New Member
3 years ago
Solved

remove historical data from table

Hi, 

I am facing issue in creating Table 2 from Table 1. Table 1 has historical records for the host. I want to keep the latest row data for each host in Table 2.

 

please refer Table 1

 

HostDateStatus
Computer130/11/2022Compliant
Computer230/10/2022Non Compliant
Computer330/06/2022Compliant
Computer125/11/2022Compliant
Computer225/09/2022Compliant
Computer325/07/2022Non Compliant

 

table 2 output should be 

HostDateStatus
Computer130/11/2022Compliant
Computer230/10/2022Non Compliant
Computer325/07/2022Non Compliant

 

I am able to get the unique value for the Host column but getting the latest date and related status is showing error.

regards

Salil Singh

2 Replies