Guest User

Untitled

a guest
Jan 18th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. SELECT SUM(CAST(yourcolumn AS DECIMAL(10, 2)))
  2. FROM yourtable
  3.  
  4. select sum(cast(qty as DECIMAL(10, 2)))
  5. from inventory i
  6. where i.refDocNum = 485
  7. and i.refApp = 'WO'
  8. and i.type in (20, 21)
Add Comment
Please, Sign In to add comment