You should use an OUTER JOIN in the query to join to the table in question, and then use an ISNULL statement in the SELECT list to put in $0 when the value is NULL. That should do everything you need.
Trending Articles
More Pages to Explore .....