i'm planning to add sql values.
Dim cmdStringc23 As String = " Update [Associate_wise_chart]
set [Hours]= (select SUM(tat) from [Dashboard].[dbo].[Dashboard]
where [assignee] like '%Santosh%') + (select SUM(tat)
from [Dashboard].[dbo].[requests]
where [assignee] like '%Santosh%') "
So consider, value from dashboard table is 10 value from requests table is NULL.
So I'm getting answer as 10+NULL = NULL.
I have set tat as NULL. My requirement , i have to display answer as 10 and not as NULL
Could any one have a look ?
set ColX = coalesce(nullable-select, ColX).