Advertisement
Guest User

Untitled

a guest
May 28th, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. http://pastebin.com/FXp13168
  2.  
  3. --update actuation_rule_tag set art_state = 2
  4.  
  5. --select art.* , t.tag_name,ar.* , u.unt_id , u.unt_name,u.unt_serial
  6.  
  7. --from actuation_rule_tag art
  8. --inner join actuation_rule ar on ar.ar_id = art.ar_id
  9. --inner join tag t on art.tag_id = t.tag_id
  10. --inner join unit u on t.unt_id = u.unt_id
  11. --where u.unt_id = 6 and ar_date is null
  12. --and (
  13. --(ar_time >= '23:00:00' and ar_time < '23:59:59') or
  14. --(ar_time >= '00:00:00' and ar_time <= '11:00:00') )
  15. --order by u.unt_id,t.tag_id, ar_time
  16.  
  17. exec [iEnergy3BCP].[dbo].[GetUnitsForNextActuations] 60
  18. exec [iEnergy3BCP].[dbo].GetUnitNextActuations 61,16
  19. exec [iEnergy3BCP].[dbo].GetUnitNextActuations 5,16
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement