I was working in MSSQL server 2012. I wrote a query
select * from Mytable where col1 is not null and col1 != ''
and
select * from Mytable where col1 is not null and col1 <> ''
Both returns same value. I am just curious to know, what is the actual difference between <>
and !=
operators?