Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 22513

Question about Report Writer and SQL

$
0
0

I have a 2 part question:

 

  1. Is there a way to color a row in a report based on the status
  2. I have a query i created for this report and I am trying to pull the last event that happened for each node its almost there however its pulling the first event and not the last one HELP PLEASSEEE

 

select Nodes.GroupStatus as img,Nodes.VendorIcon as vimg,Nodes.NodeID,MIN(Nodes.Caption) as Node,MAX(Events.Message) as Issue,MAX(Events.EventTime) as ChangedTime, MAX(IP_Address) as IP from Events

left join Nodes on Nodes.NodeID = Events.NetworkNode

where (Status in (2,3,4,7,8,10,12,14,15,16,17,19,24,25)) OR (ChildStatus in (2,3,4,7,8,10,12,14,15,16,17,19,24,25))

group by Nodes.NodeID, GroupStatus, VendorIcon

order by ChangedTime DESC

 

Thank you in advance!


Viewing all articles
Browse latest Browse all 22513

Trending Articles



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