I have a SQL query which used to cause a
Divide By Zero exception
I\'ve wrapped it in a CASE statement to stop this fr
CASE
A nicer way of doing this is to use NULLIF like this:
Percentage = 100 * ClubTotal / NULLIF(AttTotal, 0)