Lisa,
I've been looking at this... and have come up with the following:
SELECT friendlyname AS "Master",
domain_image.id AS "Image ID",
utcbiginttonomtime(writeendtime) AS "Backup EndTime",
utcbiginttonomtime(expirationTime) AS "Expires",
DATEDIFF(dd, utcbiginttonomtime(writeendtime), utcbiginttonomtime(expirationTime)) AS "Days of Retention" ,
clientname AS "Client",
policyname AS "Policy",
scheduleLabel AS "Schedule Name"
FROM domain_masterserver
JOIN domain_image
ON domain_image.masterserverid = domain_masterserver.id
JOIN domain_jobimage
ON domain_jobimage.imageid = domain_image.id
WHERE unexpiredcopycount > 0
There are a few tweeks that could be done here... but this will return a list of images that have not expired.
It will display the requested fields, in addition to Backup End Time, Expiration Time, and the difference between the 2 in number of days.
This will return a list of all unexpired images... and not just those in the past 90 days.
I had not added that, but did want to provide something in the meantime.
If this works for you, please mark as resolved... if not, let me know, and I will update when available.
--Tom