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...

what is Constraint? How many types of constraints in SQL ?

Answer Posted / pandia rajan

A constraint is a property assigned to a column or the set
of columns in a table that prevents certain types of
inconsistent data values from being placed in the column
(s). Constraints are used to enforce the data integrity.
This ensures the accuracy and reliability of the data in
the database

CONSTRAINT=The threat or use of force to prevent, restrict,
or dictate the action or thought of others.

there are 7 types of constraints are there and they are
grouped in to 4 types. They are

TYPES GROUP
1.DEFAULT = DOMAIN INTEGRITY
2.NOT NULL = DOMAIN INTEGRITY
3.CHECK = DOMAIN INTEGRITY
4.FOREIGN KEY = REFERENTIAL INTEGRITY
5.UNIQUE KEY = ENTITY INTEGRITY
6.PRIMARY KEY = DOMAIN INTEGRITY
7.RULE = USER DEFINED INTEGRITY

Is This Answer Correct ?    8 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do database indexes work?

1003


What are data resources?

902


What is dirty read?

1076


How can you check the version of sql server?

1088


Explain Capacity planning to create a database? and how to monitor it?

4197


‘Order by’ is not allowed in a view how can you sort information from a view?

1074


What action plan is preferred if sql server is not responding?

1095


What is SQL Azure Firewall?

136


What are approximate numeric data types in ms sql server?

1045


What is a benefit of using an after insert trigger over using a before insert trigger?

976


What are the benefits of filtered indexes?

1030


What are alternate keys?

974


What are the advantages of using cte?

1004


How can you find out if the current user is a member of the specified microsoft® windows nt® group or microsoft sql server™ role?

1028


What is the contrast between sql and mysql?

1100