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

Answer Posted / rohit nanda

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

There are 4 Types of Constraints.
• Entity Integrity - Primary and Unique
• Domain Integrity - Default, Check and Not Null
• Referential integrity – Foreign Key
• User-Defined Integrity - enforces some specific

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to remove duplicate rows from table?

606


What do you mean by a dependent functionality in a build?

661


Can we perform backup restore operation on tempdb? : sql server database administration

590


What xml support does the sql server extend?

533


What are the restrictions applicable while creating views? : SQL Server Architecture

588






Can select statements be used on views in ms sql server?

582


Can the query output be sorted by multiple columns in ms sql server?

557


Which language rdl files made of?

100


What is the need for indexing?

502


What is the difference between deallocate cursor and close cursor?

726


Working with TLogs

1453


What is the contrast amongst drop and truncate?

562


What is check constraint in sql server?

525


What is cursors?

646


How to enforce security in sql server? : sql server security

623