Simple handling of division by 0.

SELECT club_id, males, females, males/NULLIF(females, 0) AS ratio
FROM school_clubs

Categorized in:

SQL,

Last Update: May 18, 2024