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

Answer Posted / nambi 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 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
business rules that do not fall into entity, domain, or
referential integrity categories

Is This Answer Correct ?    13 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to override dml statements with triggers?

583


How we can refresh the view?

600


Explain about protocol layer present in SQL server?

611


How you provide security to cube? : sql server analysis services, ssas

542


What is the syntax to execute the sys.dm_db_missing_index_details? : sql server database administration

631






Can I delete event logs?

548


What are the properties of primary key?

523


What does it mean to be in union?

529


What the difference between UNION and UNIONALL?

576


What are the types of processing and explain each? : sql server analysis services, ssas

743


How will you make an attribute not process? : sql server analysis services, ssas

588


Which tcp/ip port does sql server run on? How can it be changed?

577


What are different type of Collation Sensitivity?

556


How you can find out if an index is useful to the optimizer?

499


What are types of subqueries?

560