Guest User

Untitled

a guest
Jun 19th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. INSERT INTO timecrunch.dbo.intervals (IntervalID, Duration)
  2. SELECT ixInterval, DATEDIFF(hour, dtStart, dtEnd) FROM fogbugz.dbo.TimeInterval
  3. WHERE dtEnd is not NULL
  4.  
  5. DATEDIFF(second, dtStart, dtEnd) / (3600.0)
  6.  
  7. INSERT INTO timecrunch.dbo.intervals (IntervalID, Duration)
  8. SELECT
  9. ixInterval,
  10. DATEDIFF(mi, dtStart, dtEnd) / 60.0
  11. FROM
  12. fogbugz.dbo.TimeInterval
  13. WHERE
  14. dtEnd is not NULL
Add Comment
Please, Sign In to add comment