troubleshooting Question

Add two select columns and show them as another select column

Avatar of zolf
zolfFlag for United Arab Emirates asked on
SQLDatabasesMySQL Server
1 Comment1 Solution9 ViewsLast Modified:
Hi there,

I have a select statement and I want to add to sum of of the columns and show the result as another column.
for e.g.
select
   st_com_frm_sup_qty,
   st_mfg_frm_sup_qty,
   (st_com_frm_sup_qty+st_mfg_frm_sup_qty) as sum_from_sup_to_com_and_mfg
from
But the issue I have is if any on the first 2 value is NULL the result of the third col is NULL
ASKER CERTIFIED SOLUTION
Qlemo
"Batchelor", Developer and EE Topic Advisor

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Top Expert 2015

The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros