Guest User

Untitled

a guest
Apr 25th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. DECLARE @tcal table(TagIndex smallint,TagName nvarchar(20),Total decimal(18,2))
  2.  
  3. 284.45
  4. 233.97
  5. 240.17
  6. 81.39
  7. 67.55
  8. 0.00
  9. 71.57
  10. 72.91
  11.  
  12. select sum(CAST(Total AS decimal(18,2))) FROM @tcal where TagIndex>44
  13.  
  14. 767.56
  15.  
  16. 1052.01
Add Comment
Please, Sign In to add comment