How do I select rows which don\'t equal a value and also include nulls in the returned data? I\'ve tried:
SET ANSI_NULLS OFF SELECT TOP 30 FROM Mails WHERE a
Try checking for NULL explicitly:
SELECT TOP 30 col1, col2, ..., coln FROM Mails WHERE (assignedByTeam <> 'team01' OR assignedByTeam IS NULL)