I'm having table with two columns namely hostname and timestamp. Host name will be having many duplicates values as mentioned below. I need to get the timestamp of the last entry of particular duplicated value .In this case,There are duplicate values for both Server AB and CD.but i need to find the duplicate value for Hostname=AB. IN real time this table will be containing many duplicates for hostname.
|hostname |timestamp|
|:........|---------:|
|AB |14Aug2021 11:12|
|BC |15Aug2021 11:12|
|CD |16Aug2021 11:12|
|CD |22Aug2021 11:12|
|AB |25Aug2021 11:12|
|CD |26Aug2021 11:12|
In the above table I need to get the latest entry of time stamp for hostname=AB