A table contains four columns “server”, “directory”, “usage” and “datetime”. All servers has got 10 dirs in common. I need to get the data for a server and it’s any dir the usage for the latest datetime in a day.
Say for example if there is a server A with directory B there will be Usage at multiple time for few days. I need the data to be reported by the query for all servers it’s all corresponding directory’s usage for the latest entry on each day.
A table contains four columns server, directory, usage and datetime. All servers has got
Share
If I understood your question correctly, you want to see the last usage for every server and directory. Given a table named “usagestats” with the given columns that would be: