Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain an integrity constrains?

1150


What are the attributes of cursor?

1054


definition of cluster and non-clustered index?

3035


What is oracle update statement with inner join ?

1061


Explain integrity constraint?

1163


How to define a record variable to store a table row?

1058


What is meant by joins? List out the types of joins.

1031


Explain the use of parfile option in exp command.

1069


How can you use check constraints for self referential integrity?

971


Explain a segment?

1089


How to create a stored program unit?

1229


How to revoke create session privilege from a user in oracle?

1018


Is there a combination of "like" and "in" in sql?

1065


How to create a single index for multiple columns?

1038


Difference between pre-select and pre-query

1114