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 / shreevats

Constraints are the conditions which allows to restrict the invalid or inconsistent data in the tables.

Types of Constraints
1.Not null:Not null make any column as mandatory and it will not allows the null values.
2.Unique:It will not allows duplicate values.
3.Primary Key:A PK is used to identify a record uniquely in a table.
PK=UNIQUE+NOT NULL
4.Foreign Key or Referential Integrity constraint
:It creates the relationship between any two tables.
5.Check: It is used for enforcing business validation.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about analysis services?

980


What is a linked server in sql server?

1015


What is transact-sql ddl trigger?

1046


Where does the copy job runs in the log shipping primary or secondary? : sql server database administration

997


what are triggers? : Sql server database administration

863


Explain how long are locks retained within the repeatable_read and serializable isolation levels, during a read operation with row-level locking?

1098


What is SQL Azure?

105


How to stop a loop early with break statements in ms sql server?

972


What are the different types of cursor?

1039


What is log cache in sql server?

982


Give main differences between "Truncate" and "Delete".

1031


What is the fillfactor concept in indexes?

933


What is bit data type?

978


What is a transact-sql statement?

980


What are the three different part of rdl file explain them?

253