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 ?

Answers were Sorted based on User's Feedback



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

Answer / vinod

Constraints are used to restrict the insertion of unwanted data.
Using constraints you can maintain data integrity by preventing invalid data being entered.

Constraints are Five type
Primary key
Unique Key
Foreign Key
Not Null
Check

Is This Answer Correct ?    0 Yes 0 No

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

Answer / mohan

Constraint is nothing but set of rules or restrictions on a column,in order to achieve business requirements.

There are five types of constraints,
they are
1.primary key
2.unique key
3.not null
4.check
5.foreign key

These constraints also called data integrity constraints.

Is This Answer Correct ?    0 Yes 1 No

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

Answer / awadhesh

You can place constraints to limit the type of data that can go into a table. Such constraints can be specified when the table when the table is first created via the CREATE TABLE statement, or after the table is already created via the ALTER TABLE statement.

Common types of constraints include the following:

NOT NULL Constraint: Ensures that a column cannot have NULL value.
DEFAULT Constraint: Provides a default value for a column when none is specified.
UNIQUE Constraint: Ensures that all values in a column are different.
CHECK Constraint: Makes sure that all values in a column satisfy certain criteria.
Primary Key Constraint: Used to uniquely identify a row in the table.
Foreign Key Constraint: Used to ensure referential integrity of the data.

Is This Answer Correct ?    0 Yes 1 No

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

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

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

Answer / ns

constraints are like an a right or any event which can we
apply on our table or column, or its an rule of integrity
there is an types of constraint:-
1.primary key
2.foreign key
3.unique
4.check
5.default
6.not null

Is This Answer Correct ?    0 Yes 2 No

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

Answer / magesh manavalan

Types Of Constraints:

* Primary Key

* Foreign Key

* Default

* Unique Key

* Not NULL

* Check

Is This Answer Correct ?    0 Yes 2 No

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

Answer / rajesh

there r 33 constraints

Is This Answer Correct ?    5 Yes 9 No

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

Answer / lekhraj

Constraints are the way by Databse managing the data inegrity.

Types of constraint are:-
1)NOT Null
2)Default
3)Check
4)Rule
5)Primary
6)Unique
7)Foreign

Is This Answer Correct ?    46 Yes 65 No

Post New Answer

More SQL Server Interview Questions

How can I get data from a database on another server?

0 Answers  


What is better - 2nd Normal form or 3rd normal form? Why?

2 Answers   TCS, TPK,


what is difference between having and where clause ?

3 Answers  


What are rows and columns?

0 Answers  


What are the limitation of the Online Index Rebuild Operation?

1 Answers  


Explain Trigger with an example?

2 Answers  


wat is tuff file in log shipping, wt is d use of tht file?

1 Answers   TCS,


What are the differences between clustered and non-clustered index?

0 Answers  


What is sparse columns of sql server 2008?

0 Answers  


Tell me about normalization in DBMS.

0 Answers   Honeywell, Zomato,


How many .ndf files can we create in Sql server 2005?

2 Answers   Wipro,


Can you explain different types of locks in sql server?

0 Answers  


Categories