Skip to content

Instantly share code, notes, and snippets.

@AlexArchive
Created July 29, 2013 07:59
Show Gist options
  • Save AlexArchive/6102762 to your computer and use it in GitHub Desktop.
Save AlexArchive/6102762 to your computer and use it in GitHub Desktop.
Finds all customers who are not in WA (Including NULL)
USE TSQL2012;
SELECT custid, region, city
FROM Sales.Customers
WHERE ISNULL(region, '') <> 'WA'
WHERE region <> 'WA'
OR region IS NULL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment