Custom Search
www.rocket99.com : Technical Guides Sybase Oracle UNIX Javascript


Technical Guides
Sybase
Oracle
UNIX
Javascript




Of Interest

Business Intelligence and Analytics



Oracle Training





Oracle » PL-SQL » NULL »

NULLIF Function

     




This function allows override certain values with NULL - handy for avoiding division by zero.




Example:

select emp_id, (total_hours / NULLIF(overtime_hours,0) ) from timecard ;


In this example, the hourly data is returned as null if the overtime_hours column containts zero.







Oracle : Related Topics


Sybase Web Site
Sybase iAnywhere Mobile Web Site
Oracle Enterprise Web Site



Get the latest Rocket99 news and tech tips via






Site Index About this Guide to Sybase, Oracle, and UNIX Contact Us Advertise on this site




Copyright © 2016 Stoltenbar Inc All Rights Reserved.