Greeting everyone,
I am a beginner at SWQL and I'm not very good at SQL neither. I have problems with he bellow sequence.
I am trying to create a widget with the Volume size available of my nodes and I want to add the NodeName which is not in Orion.Volumes collection but in Orion.Nodes collection.
Unfortunately I can't really wrap my head around this. Is there anybody who want to help me, please?
Here is the code as text:
SELECT Orion.Nodes.NodeName
, round((VolumeSpaceAvailable / 1073741824.0),2) as GB_Available
, VolumePercentAvailable
, round((Size/ 1073741824.0),2) as Size_GB
, DetailsUrl AS [_LinkFor_FullName]
FROM Orion.Volumes AS Volume
INNER JOIN Orion.Nodes.NodeID as Nodes
on Orion.Nodes.NodeID = Volume.NodeID
ORDER BY VolumePercentAvailable
I've tried using only Nodes.NodeName instead of also adding the Orion at the beginning but it's the same result.
Also, at the last line (OrderBy) how can I add the "%" symbol in the results near VolumePercentAvailable?
Thank you in advance!