So my goal is to create a new custom report which will gather details from volhistory for tape volumes and only display the entries with the most recent date. I got as far as listing the details for all tape volumes but can't figure out how to narrow it down to display just the most recent date for each one. Here is my current select statement:
select volume_name as "Volume Name", Date(date_time) as Date, type as "Status" from volhistory where devclass='TSMLIB1_LTO' group by volume_name,date_time,type
Of course this select statement lists every entry for each volume so what else would I need to add to narrow it down?
select volume_name as "Volume Name", Date(date_time) as Date, type as "Status" from volhistory where devclass='TSMLIB1_LTO' group by volume_name,date_time,type
Of course this select statement lists every entry for each volume so what else would I need to add to narrow it down?