NaN and SQL NULL – the pain! This one is a nice read on NaN's in hash tables: Random Hash Functions
NaN
NULL