ADSM-L

Re: Select Command

1999-02-18 06:50:35
Subject: Re: Select Command
From: Alexander Verkooijen <alexander AT SARA DOT NL>
Date: Thu, 18 Feb 1999 12:50:35 +0100
On 18-Feb-99 Robert Ouzen wrote:
> Hello
>
> Try to run a select command to get the occupancy  for each storage pool,
> but get an error. The syntax I ran:
>
> select logical_mb as "Capacity" from occupancy group by stgpool_name
>
> What is the correct syntax !!!!!

I think this is what you want:

select stgpool_name,sum(logical_mb) as "Capacity" from occupancy \
group by stgpool_name


-------------------------------------------
Alexander Verkooijen     SARA
Alexander Verkooijen     SARA
Systems Programmer       Academic Computing
alexander AT sara DOT nl        Services Amsterdam
-------------------------------------------
=========================================================================
<Prev in Thread] Current Thread [Next in Thread>