I have a report to list all of my enabled alerts in a report on our solarwinds web portal. I created the report in report writer and it works perfectly. However, when I run the report via the web portal, I get duplicate rows. I have tried to run the report with a "SELECT DISTINCT" however it errors because I'm pulling from multiple tables. I've also tried to use a left join without any success.
Here is my SQL statement. Anyone have any ideas?
SELECT AlertDefinitions.AlertName as "Alert Name", AlertDefinitions.AlertDescription as "Alert Description", AlertDefinitions.ObjectType, AlertDefinitions.ExecuteInterval as "Run Freqency", AlertDefinitions.TriggerSustained as "Trigger Delay", ActionDefinitions.Target
From AlertDefinitions, ActionDefinitions
WHERE AlertDefinitions.AlertDefID = ActionDefinitions.AlertDefID and AlertDefinitions.Enabled = 1
Order by AlertName