Re: SQL statement

2016-01-29 Thread Loon, EJ van (ITOPT3) - KLM
Hi Erwann! As a matter of fact this one requires a little more care. Null can be the result of a filespace backup which is interrupted and never restarted (i.e. because it has been excluded from the backup) but you will also see null when the filespace is only used for archiving. Creating an arc

Re: SQL statement

2016-01-29 Thread Skylar Thompson
You could get a bit more complicated in the archive case, and exclude filespaces where o.type='Arch' On Fri, Jan 29, 2016 at 03:09:22PM +, Loon, EJ van (ITOPT3) - KLM wrote: > Hi Erwann! > As a matter of fact this one requires a little more care. Null can be the > result of a filespace backup

Re: SQL statement

2016-01-29 Thread Rhodes, Richard L.
If you get to a definitive sql statement, would love to see it! Rick -Original Message- From: ADSM: Dist Stor Manager [mailto:ADSM-L@VM.MARIST.EDU] On Behalf Of Skylar Thompson Sent: Friday, January 29, 2016 10:14 AM To: ADSM-L@VM.MARIST.EDU Subject: Re: SQL statement You could get a

Re: SQL statement

2016-01-29 Thread Skylar Thompson
This is what I came up with: SELECT - f.node_name, - f.filespace_name, - f.backup_end, - CAST(ROUND(o.physical_mb/1024) as int) as "GB Stored" - FROM - filespaces f, - occupancy o - WHERE - o.node_name=f.node_name - AND o.filespace_name=f.filespace_name - AND ((o.type<>'