Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

divide by zero error in sql

SELECT club_id, 
		males, 
        females, 
        males/NULLIF(females, 0) AS ratio
  FROM school_clubs;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #divide #error #sql
ADD COMMENT
Topic
Name
8+7 =