Hacker News new | ask | show | jobs
by brobinson 3573 days ago
Sounds like this could have also been mitigated by either the SQL server warning about SUM() operating over a nullable column or a "where foo is not null" clause. Your solution is best, though.