Select query from all DPs

Find and share HowTos to various installations / configurations!
3 posts • Page 1 of 1
najoua
Posts:26
Joined: Fri Nov 27, 2015 10:21 am

Select query from all DPs

Post by najoua »

Hi,

I have the following sql query that select all alerts of a DP. What is the syntax to do a select query of all available alerts of all DPs in the Para module?

SELECT ALERT 'COUNT(_alert_hdl.._value)' FROM 'MyDP_example' WHERE '_alert_hdl.._act_state' = 1

Thanks,

michel.eijgermans
Posts:46
Joined: Mon Aug 08, 2011 11:50 am

Re: Select query from all DPs

Post by michel.eijgermans »

Hi,
Have you tried the following statement,
SELECT ALERT 'COUNT(_alert_hdl.._value)' FROM '*' WHERE '_alert_hdl.._act_state' = 1

najoua
Posts:26
Joined: Fri Nov 27, 2015 10:21 am

Re: Select query from all DPs

Post by najoua »

Hi,

Thank you Michel ! I tried to use the '*' but it doesn't work, the I replaced it by '*.*.*.*' and it works because in the structure of my DPs I have alerts at the 4th level !!

Best regards,

3 posts • Page 1 of 1