Hacker News new | ask | show | jobs
by marcosdumay 1988 days ago
SQL could really use some standard aggregation function that returns null for no rows, the value of a single row and error if there is more than one row.

That kind of query happens all the time, and min/max behavior isn't the safest one.