Hello,
In docs(https://docs.oracle.com/cd/B19306_01/server.102/b14200/clauses002.htm ) it writes:
The condition of a check constraint can refer to any column in the table, but it cannot refer to columns of other tables.
But when I try to execute this create table script, I got an error.
create table il_ck_emp5 (
emp_id number,
salary number check (salary/emp_id>20)
)
My Oracle version is: Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
Can anyone explain it for me
Please note that it is case studying for an exam.
Thanks before hand.