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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about local stored procedure?

510


How to encrypt data between dialogs?

574


What the different components of Replication and what is their use?

561


Do you know what is normalization of database? What are its benefits?

562


How to round a numeric value to a specific precision?

573






Why use “pivot” in sql server?

629


what are the important architecture components of SSRS?

94


How to use "if ... Else if ... Else ..." Statement structures in ms sql server?

539


What is pessimistic concurrency?

546


What is clustered index

571


How to see existing views in ms sql server?

548


mention different types of relationships in the dbms?

507


What are the different types of collation sensitivity in sql server?

588


What is PROJECTION Operation?

611


can you implement data mining in SSRS?

113