I'd like to try a query that retrieves interface traffic from all nodes and interfaces on the network to the internet hub (MPLS network). In this query, I want to retrieve all data from the Netflowsbyconversation table and data from the Nodes. I'm thinking of something along these lines, but I get a timeout when trying to run it, regardless of row restrictions. I believe there's a problem with the join, as I've tested other joins on other tables and they worked. Any suggestions?
SELECT TOP 100 FBC.Bytes, FBC.DestinationCountryCode, FBC.DestinationDomain, FBC.DestinationDomainID, FBC.DestinationHostname, FBC.DestinationHostnameID, FBC.DestinationIP, FBC.NodeID, FBC.Packets, FBC.PortDirection, FBC.ProtocolID, FBC.SourceCountryCode, FBC.SourceDomain, FBC.SourceDomainID, FBC.SourceHostname, FBC.SourceHostnameID, FBC.SourceIP, FBC.TimeStamp, FBC.Description, FBC.IngressBytes, FBC.EgressBytes, FBC.IngressPackets, FBC.EgressPackets, FBC.TotalBytes, FBC.TotalPackets, FBC.ApplicationEnabled, FBC.EnabledApplicationID, NOD.Caption
FROM Orion.Netflow.FlowsByConversation AS FBC
INNER JOIN Orion.NPM.Interfaces As NOD ON FBC.NodeID = NOD.NodeID
WHERE FBC.DestinationIP = 'X.X.X.X'
AND FBC.TimeStamp >= ADDDAY(-1, GETDATE())
order by FBC.Packets DESC