
How to status shows '1' or '2' instead of 'Up' or 'Down'??
SELECT n.Status AS Status, COUNT(Status) AS Total ,SI.Color
FROM Orion.Nodes as n
INNER JOIN Orion.StatusInfo SI on SI.StatusId=n.Status
INNER JOIN Orion.ContainerMemberSnapshots cm on cm.FullName=n.caption
INNER JOIN Orion.Groups g on cm.ContainerID=g.ContainerID
where g.DisplayName='All-Ex'
Group By n.Status Order By n.Status