Guest User

Untitled

a guest
Apr 25th, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. SELECT COALESCE(SUM(SUBTOTAL),0)
  2. FROM dbo.SALESORD_HDR
  3. where ORDERDATE = datediff(d,0,getdate())
  4. and STATUS NOT IN (3,6)
  5.  
  6. SELECT SQL#.Math_FormatDecimal(123.456, N'C', N'en-us');
  7.  
  8. SELECT SQL#.Math_FormatDecimal(123.456, N'C', N'fr-fr');
  9.  
  10. SELECT SQL#.Math_FormatDecimal(COALESCE(SUM(SUBTOTAL),0), N'C', N'en-us') AS [Total]
  11. FROM dbo.SALESORD_HDR
  12. where ORDERDATE = datediff(d,0,getdate())
  13. and STATUS NOT IN (3,6)
  14.  
  15. SELECT '$' + CONVERT(VARCHAR(50),
  16. CONVERT(MONEY, COALESCE(SUM(SUBTOTAL), 0)),
  17. 1) AS [Total]
  18. FROM dbo.SALESORD_HDR
  19. where ORDERDATE = datediff(d,0,getdate())
  20. and STATUS NOT IN (3,6)
Add Comment
Please, Sign In to add comment