Quantcast
Channel: THWACK: All Content - Orion SDK
Viewing all articles
Browse latest Browse all 2677

SWQL: Sum of VolumeSize

$
0
0

Hi, I am trying to get the sum of the total volumesize into a single row, but when I try to run this, it's giving me 3 rows. 


Can you show me how to add this up.  Thank you very much for the help!

 

SELECT

n.caption, n.ipaddress,  sum(v.VolumeSize) as [disk]

from orion.nodes n

left join orion.Volumes v on n.NodeID = v.NodeID

where v.VolumeSize is not NULL

group by n.caption, n.IPAddress, v.VolumeSize

 


Viewing all articles
Browse latest Browse all 2677

Trending Articles