Quantcast
Viewing all articles
Browse latest Browse all 20202

Need SQL Help for UnDP reporting

I'm trying to generate a report to use on a dash/view to reflect the stats of multiple UnDPs.  It currently looks like this...

 

Image may be NSFW.
Clik here to view.

 

 

But would like it to look like...

 

Image may be NSFW.
Clik here to view.

 

The above table uses UniqueName values as Columns

 

 

Here's my SQL query:

 

SELECT n.caption, n.IP_Address, cpa.assignmentName, cp.UniqueName, cps.status  FROM CustomPollerAssignment cpa
INNER JOIN Nodes n
ON cpa.NodeID=n.NodeID
INNER JOIN CustomPollers cp
ON cp.CustomPollerID=cpa.CustomPollerID
INNER JOIN CustomPollerStatus cps
ON cps.CustomPollerAssignmentID=cpa.CustomPollerAssignmentID

Where tag = 'junos'

ORDER by AssignmentName  ASC

 

Help would be greatly appreciated.

 

Thanx.


Viewing all articles
Browse latest Browse all 20202

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>