IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Difference between coalesce and value functions in DB2


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pjnithin

Active User


Joined: 22 Dec 2005
Posts: 116

PostPosted: Tue Oct 23, 2007 6:21 pm
Reply with quote

Whats the difference between coalesce and value functions in DB2.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Tue Oct 23, 2007 6:49 pm
Reply with quote

pjnithin wrote:
Whats the difference between coalesce and value functions in DB2.


According to the DB2V7 Manual
Quote:
The COALESCE function returns the first argument that is not null. VALUE can be used as a synonym for COALESCE. Use COALESCE to conform to the SQL standard.
Back to top
View user's profile Send private message
dipakgoyal
Warnings : 1

New User


Joined: 02 Aug 2007
Posts: 18
Location: Kolkata

PostPosted: Thu Apr 10, 2008 4:09 pm
Reply with quote

From DB2 Developer's guide by Craig S Mullins:

The VALUE function is a synonym for the COALESCE function. Favour using COALESCE though as it adheres to the ANSI standard.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Difference between joblib and steplib JCL & VSAM 2
No new posts Pull data using date difference betwe... DB2 6
No new posts Difference between PLT txn and schedu... CICS 3
No new posts Timestamp difference and its average ... DB2 11
No new posts Difference when accessing dataset in ... JCL & VSAM 7
Search our Forums:


Back to Top