SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Other Forums
 Other Topics
 difference bet NVL and COALESCE
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

kawadeprasad
Starting Member

13 Posts

Posted - 06/04/2012 :  06:40:46  Show Profile  Reply with Quote
Hi,
I would like to know the difference bet NVL and COALESCE.
performance wise which is better?
what are the merits and demerits of each of those?
Where it's recommended to use?

Thanks in advance!!!

-Prasad

robvolk
Most Valuable Yak

USA
15568 Posts

Posted - 06/04/2012 :  09:25:12  Show Profile  Visit robvolk's Homepage  Reply with Quote
NVL is an Oracle feature, IIRC. SQLTeam is a Microsoft SQL Server website. You can find more information on NVL here: http://www.techonthenet.com/oracle/functions/nvl.php

The most basic difference is that COALESCE can evaluate multiple replacement values, while NVL can only accept one. If there is a performance difference it's probably negligible.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000