comparison operator <> and its equivalents

We all know that != operator is equivalent to <> operator. But there is another one, less known, which is ^=

Be prepared, this question can be on the exam.

select * from employees where first_name <> last_name;
select * from employees where first_name != last_name;
select * from employees where first_name ^= last_name;

All three statements will produce the same results

Leave a comment

Your email address will not be published. Required fields are marked *