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
How to define a data source name (dsn) in odbc manager?
Explain integrity constraint?
How to create a new table in oracle?
How many categories of data types in oracle?
Can we use bind variables in oracle stored procedure?
What is index in Oracle?
What is java oracle used for?
What is a partition in oracle?
How do I use unicode codesets with the weblogic jdriver for oracle driver?
How to build data dictionary view an new database?
What is a package in oracle?
What is the data pump import utility?
How to omit columns with default values in insert statement in oracle?
How many categories of data types?
WHEN CURSOR MOVES FROM ONE FORM TO ANOTHER FORM, HOW MANY TRIGGER WILL BE FIRED AND WHAT ARE THEIR SEQUENCE?