Can an Integrity Constraint be enforced on a table if some
existing table data does not satisfy the constraint ?
Answer Posted / sandeep desai
No.
Eg:-
Consider Table emp
Assume there are only 5 records in emp
and in emp_sal column values are (1200,1400,4500,2000).
Now if I try to create a check constraint on emp_sal column
for the range between 2000 and 4000 then an error is thrown
since values below this range also exist in emp_sal column.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is oracle analytical function?
How to add another datafile to a tablespace?
How to see the table columns used in an index?
How to store only time; not date and time?
How data locks are respected in oracle?
How to increment dates by 1 in oracle?
How to revoke create session privilege from a user in oracle?
How to grant create session privilege to a user in oracle?
How to empty your oracle recycle bin?
Difference between varchar and varchar2 data types?
Explain implicit cursor.
How to rename an index?
How can windows applications connect to oracle servers?
Can you create a synonym without having a table?
What are the common oracle dba tasks?