Mar 11, 2005 #1 Lesio MIS Jan 7, 2003 48 US Is there a function in DB2 to returns the first nonzero argument ? Column1 = 0 Column2 = 1.5 Function (column1, column2) = 1.5
Is there a function in DB2 to returns the first nonzero argument ? Column1 = 0 Column2 = 1.5 Function (column1, column2) = 1.5
Mar 15, 2005 #2 rbod Programmer Feb 1, 2005 74 US select (case when c1=0 then c2 else c1 end) from table Upvote 0 Downvote