这是我的代码:
Percentage = CASE WHEN AttTotal <> 0 THEN (ClubTotal/AttTotal) * 100 ELSE 0 END
Percentage = 100 * ClubTotal / NULLIF(AttTotal,0)