I have some problem creating a check constraint on SQL server.
Summarizing I have two tables: employee
and min_salary
EMPLOYEE (
SALARY DECIMAL
.
.
.
)
MIN_SALARY (
MIN_SALARY DECIMAL
)
I need to CHECK when insert a new Employee if the employee salary is greater than min_salary.
I have tried with functions and constraint check but i've not succeeded.