Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

add values of column with null sql

SELECT sum(COALESCE(TotalHoursM,0))
          + COALESCE(TotalHoursT,0)
          + COALESCE(TotalHoursW,0)
          + COALESCE(TotalHoursTH,0)
          + COALESCE(TotalHoursF,0) AS TOTAL FROM LeaveRequest
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #values #column #null #sql
ADD COMMENT
Topic
Name
8+3 =