Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

latest backup size - max(backup_finish_date)

$
0
0

Why does this query return multiple rows per database?

select database_name, backup_size, max(backup_finish_date)
from msdb.dbo.backupset
where database_name = 'Ditest' and type='D'
group by database_name, backup_size
order by backup_finish_date desc

SQL Server 2008r2, enterprise edition


Dianne


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>