title: Why Can't I Select != Nvarchar?
body: <p>As you can see in the image below, if I perform the following query I get at least 10 results:</p>
  
  <pre><code>SELECT TOP (10) [t0].[u_nonreportable]
  FROM [sdidataitem] AS [t0]
  WHERE [t0].[u_nonreportable] IS NULL
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/DDX9V.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DDX9V.png" alt="enter image description here"></a></p>
  
  <p>By contrast, if I simply perform a query like this, I get no results:</p>
  
  <pre><code>-- Region Parameters
  DECLARE @p0 NVarChar(1000) = 'Y'
  -- EndRegion
  SELECT TOP (10) [t0].[u_nonreportable]
  FROM [sdidataitem] AS [t0]
  WHERE [t0].[u_nonreportable] &lt;&gt; @p0
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/1kqi9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1kqi9.png" alt="enter image description here"></a></p>
  
  <p>If there are results where <strong>[u_nonreportable] is null</strong>, then why don't I get any results when I say <strong>[u_nonreportable] != 'Y'</strong>?</p>
  
  <p>Note: I am using LINQPad in the examples above; however, I have also confirmed the results by running the SQL queries in SSMS.</p>