The task is to write an alter query for general constraints. Specifically: "In Employee, if EmployeeLevel is NULL, then EmployeeSalary must also be NULL". If anyone could explain a correct solution, it would be much appreciated!
ALTER TABLE Employee
ADD CONSTRAINT
CHECK (
EmployeeLevel IS NULL
AND EmployeeSalary IS NULL
);