How to make a SQL query on a field which can be NULL and values, and only chose the largest value if possible
# Postmortem: Incorrect Handling of NULL in SQL MAX Queries ## Summary An incorrect SQL query attempted to retrieve records with the largest non-NULL value in column `fd`, falling back to NULL values when no non-NULL data existed. The query failed due to improper NULL handling in comparison logic, yielding no results when NULL values … Read more