Quantcast
Channel: ADSM.ORG
Viewing all articles
Browse latest Browse all 2470

TSM V6 SQL Select Question

$
0
0
I am converting a script from TSM 5.5 to TSM 6.2 and it appears TSM v6 does not like the MEAN function. The following select works on TSM v5 but not 6. Is there something I need to modify to get it to work?

select STGPOOL_NAME, cast(MEAN(EST_CAPACITY_MB/1024/1024) AS DECIMAL (8,2)) as TB_PER_FULL_VOL from VOLUMES WHERE STATUS='FULL' GROUP BY STGPOOL_NAME


This basically does the same thing and works on both v5 and v6, it's just interesting that MEAN no longer works.

select STGPOOL_NAME, CAST(AVG(EST_CAPACITY_MB/1024/1024) AS DECIMAL(8,2)) as TB_PER_FULL_VOL from VOLUMES WHERE STATUS='FULL' GROUP BY STGPOOL_NAME

Viewing all articles
Browse latest Browse all 2470

Trending Articles