I have seen SQL that uses both != and <> for not equal. What is the preferred syntax and why?
SQL
!=
<>
They're both valid and the same with respect to SQL Server,
https://docs.microsoft.com/en-us/sql/t-sql/language-elements/not-equal-to-transact-sql-exclamation