Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
How to get the sum value for the nothing recordTable1:date amount1/1/2008 10001/3/2008 20001/5/2008 3000My query is:select amount from table1 where month(date)='1'return values:1/1/2008 10001/3/2008 20001/5/2008 3000but i want this:1/1/2008 10001/2/2008 0.001/3/2008 20001/4/2008 0.001/5/2008 30001/6/2008 0.00..don't use front end because this query used as sub query.Thanks Advance.