- NVL is an Oracle Function. Hence works perfect in Oracle, may or may not work on other RDBMS softwares.
- Coalesce is an ASCII function. Hence works perfect on any RDBMS software.
- NVL can implicitly convert datatypes. But Coalesce cannot.
Example:
- Syntaxes: NVL (expr1, expr2 )
Coalesce( expr1, expr2 )
- Coalesce executes faster than NVL. (~ 0.5 times ). This is because, NVL evaluates both the arguments and Coalesce evaluates only first argument.
Hi Friends, I started this blog to share the knowledge which i have in Oracle (OLTP) and Datawarehousing (OLAP) databases. Please post your comments and share your views and opinions..
Wednesday, 28 December 2011
NVL vs Coalesce
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment