TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Thirunavukkarsu j
NA
196
89.9k
sql query Negative values assign 0 in case using
Sep 3 2015 3:41 AM
Hi
My sql query is below
SELECT (SUM(CAST(TOTAL_TRIPS_SLUM AS BIGINT)) - SUM(CAST(SLUM_SUPPLY AS BIGINT))) as Balance FROM TBL_SMS_REPORT
WHERE date= '2015-09-01'
Out put is :
-9
i need negative values 0 assign how this write the commant.
Reply
Answers (
2
)
Getting same average values excute the stored procedure
stored procedure returns Null value