What I thought that he wanted...
was a test for when a string was just a row of spaces.
In which case you DON'T want NULL to match, so we need to move NULLs to some string that won't be nulled by the TRIM.
Cheers,
Ben
"good ideas and bad code build communities, the other three combinations do not"
- [link|http://archives.real-time.com/pipermail/cocoon-devel/2000-October/003023.html|Stefano Mazzocchi]