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.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Manas MohapatraRank #182 · 13.2K reputationPosted Sep 2, 2015, 11:50 PM EDT
Thirunavukkarsu j166 reputationPosted Sep 3, 2015, 1:41 AM EDT