Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT COALESCE(SUM(SUBTOTAL),0)
- FROM dbo.SALESORD_HDR
- where ORDERDATE = datediff(d,0,getdate())
- and STATUS NOT IN (3,6)
- SELECT SQL#.Math_FormatDecimal(123.456, N'C', N'en-us');
- SELECT SQL#.Math_FormatDecimal(123.456, N'C', N'fr-fr');
- SELECT SQL#.Math_FormatDecimal(COALESCE(SUM(SUBTOTAL),0), N'C', N'en-us') AS [Total]
- FROM dbo.SALESORD_HDR
- where ORDERDATE = datediff(d,0,getdate())
- and STATUS NOT IN (3,6)
- SELECT '$' + CONVERT(VARCHAR(50),
- CONVERT(MONEY, COALESCE(SUM(SUBTOTAL), 0)),
- 1) AS [Total]
- FROM dbo.SALESORD_HDR
- where ORDERDATE = datediff(d,0,getdate())
- and STATUS NOT IN (3,6)
Add Comment
Please, Sign In to add comment