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 an oracle and why it is used?
How to load data from external tables to regular tables?
Is java required for oracle client?
What is a data dictionary and how can it be created?
15. Display the item_cost and then truncate it to the nearest hundred, ten, unit, tenth and hundredth.
how to do daily transactions with out sql* loader control file regesterd in apps?
What is integrity and what is constraint??Explain with example
6. Display the client name and order date for all orders using the traditional method.
What is system tablespace?
How to define a sub function?
How to define an oracle cursor variable?
Iam learning oracle developer 2000.. can anyone give me then tutorials sites or PDF related to developer 2000 please send me the details @ mak2786@gmail.com thanks Arun
What is an Oracle Instance?
How to define a variable to match a table column data type?
What is materialized view in Oracle?