What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 13938 |  Welcome, Guest!   Register  Login
  Home > Community Home >

Converting Null Sum to zero in MS SQL Server 2005

  Posted on: 7/9/2012 3:35:28 PM | Views: 46

Recommend an Articles | Recommended Articles | Search Resources | Community Home |




I used "Blahs" just for this example: One of these queries will sometimes be zero (No payments that day to add) which makes it NULL so even though the second query will have a valid SUM the whole query will add up to NULL just because the first query added up to zero. Is there any way to make the first query to say 0 instead of null so it'll properly add the totals? 1st query adds up to zero and second query adds up to 100. I want it to say  0 + 100 = 100. Right now its saying: Null + 100 = NULL. Thanks
 SELECT (Select  SUM Go to the complete details ...

Found interesting? Add this to:


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/24/2013 3:19:48 AM