proggybilly
Programmer
I am working on a program for monitoring my server backups. I am filling a table with the server and backup info every time the backup runs. So, I am going to have multiple records for each server. Each server has a different backup recurrence, some are 2 days some are 3 days so going strictly by date does not work here. I can display all my records sorted by a time stamp for the record showing recent dates first. (order by date DESC). But what I want is instead of seeing:
server1 2009-10-16
server2 2009-10-16
server1 2009-10-15
server2 2009-10-15
server3 2009-10-15
server1 2009-10-14
I only want to see the most recent record for each server so I would wanna see
server1 2009-10-16
server2 2009-10-16
server3 2009-10-15
Not sure if I am explaining it correctly. But I am needing help with how to phrase my select statement.
server1 2009-10-16
server2 2009-10-16
server1 2009-10-15
server2 2009-10-15
server3 2009-10-15
server1 2009-10-14
I only want to see the most recent record for each server so I would wanna see
server1 2009-10-16
server2 2009-10-16
server3 2009-10-15
Not sure if I am explaining it correctly. But I am needing help with how to phrase my select statement.