cancel
Showing results for 
Search instead for 
Did you mean: 

SQL query to calculate archived items size per day?

rajesh_velagapu
Level 4

SQL query to calculate archived items size per day?

 

Below query gives me archived items count, need archived items size as well.

 

select * as '8/01'

from saveset

where archiveddate >= '8/01/2011' and archiveddate < '8/02/2011'

1 ACCEPTED SOLUTION

Accepted Solutions

JesusWept3
Level 6
Partner Accredited Certified
should be something like USE yourVaultStore SELECT COUNT(IdTransaction) "Archived Items", SUM(ItemSize)/1024 "Archived Items Size (MB)" FROM Saveset WHERE ArchivedDate >= DATEADD(d, -1, getDate())
https://www.linkedin.com/in/alex-allen-turl-07370146

View solution in original post

3 REPLIES 3

rajesh_velagapu
Level 4

Query to calculated archived items count per day.

 

select count(*), as '8/01'

from saveset

where archiveddate >= '8/01/2011' and archiveddate < '8/02/2011'

JesusWept3
Level 6
Partner Accredited Certified
should be something like USE yourVaultStore SELECT COUNT(IdTransaction) "Archived Items", SUM(ItemSize)/1024 "Archived Items Size (MB)" FROM Saveset WHERE ArchivedDate >= DATEADD(d, -1, getDate())
https://www.linkedin.com/in/alex-allen-turl-07370146

rajesh_velagapu
Level 4

Thanks!!!

 

Regards

Rajesh