Check a column does not equal another column in SQL
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);
To check that a column does not equal another column in SQL you can do the following
ALTER TABLE table_name
ADD CONSTRAINT contraint_name
CHECK (column_a <> column_b);