What is a Coalesce? What is the equivalent of Oracle/Db2 Coalesce Function in Sybase

Questions by supari   answers by supari

Showing Answers 1 - 6 of 6 Answers

shamimaziz

  • Jul 21st, 2007
 

Coalesce is also available in Sybase
This functions evaluates the listed expressions and returns the first non-null value. If all the expressions are null, coalesce returns null

USAGE: coalesce(expression, expression [, expression]...)

EXAMPLE: coalesce(initialqty,finalqty,middleqty)

Returns the first occurrence of a non-NULL value in either the initialqty or finalqty or middleqty

Enjoy

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions