Advertisement
chrissharp123

Untitled

Dec 3rd, 2020
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. select ed.id,
  2. ed.name,
  3. ed.delay,
  4. ed.max_delay,
  5. ed.granularity,
  6. ev.state,
  7. count(*)
  8. from action_trigger.event ev
  9. join action_trigger.event_definition ed on (ev.event_def = ed.id)
  10. where date(ev.run_time) = date(now())
  11. and ed.id = 6 -- get this id from action_trigger.event_definition
  12. group by 1, 2, 3, 4, 5, 6
  13. order by 1, 6;
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement