Articles
sql
Check a column does not equal another column in SQLsql

To check that a column does not equal another column in SQL you can do the following

Example check

ALTER TABLE table_name
    ADD CONSTRAINT contraint_name
        CHECK (column_a <> column_b);