Re: select statement in GB's: Sorry I left out the divide
2002-03-18 22:13:00
Subject: |
Re: select statement in GB's: Sorry I left out the divide |
From: |
"Seay, Paul" <seay_pd AT NAPTHEON DOT COM> |
Date: |
Mon, 18 Mar 2002 20:30:34 -0500 |
select cast(SUM(A2.total_mb)/1024 as decimal(7,2)) as "GB_Backup_WinNT" from
nodes A1, auditocc A2 where A1.node_name=A2.node_name AND
A1.platform_name='WinNT'
This is another interesting one.
select stgpool_name as "Storage Pool Name ", -
cast(sum(est_capacity_MB*pct_utilized/100/1024) as decimal(7,3)) as
"Total GB in Pool", -
cast(count(volume_name) as decimal(4,0)) as "Tapes " -
from volumes -
where stgpool_name like 'CPY%' -
or stgpool_name like 'TAPE%' -
group by stgpool_name
Storage Pool Name Total GB in Pool Tapes
-------------------------- ---------------- ------
CPY_DAY_NAPWIN 391.495 7
CPY_DAY_NAPWIN 391.495 7
CPY_DAY_NNSAIX 274.055 6
CPY_DAY_NNSEXCH 950.556 15
CPY_DAY_NNSLINUX_S390 5.632 1
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- Re: select statement in GB's: Sorry I left out the divide,
Seay, Paul <=
|
|
|