GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Oracle  >  General

 Print  |  
Question:  explaint the nvl2 function



October 10, 2006 06:07:40 #4
 PAWANAHUJAHUJA   Member Since: October 2006    Total Comments: 5 

RE: explaint the nvl2 function
 

Hi everybody,

This is new features in 9i,

NVL means select nvl(comm,0) from tablename;

we r selecting a column comm that contain null values then it will be give by o or any specific name that u want,

in NVL2 means select NVL2(comm,sal+comm,sal) frm tab_name,

if first exp is true it will give sal only otherwise it will give sal+comm.

Regards

Pawan Ahuja

     

 

Back To Question