What are constraints? Explain different types of
constraints?

Answer Posted / aravindu chowdary

CONSTRAINTS:
*It is a rule (or) restriction ,which is enforced during a
creation of table.
*constraints raises automatically at the time of
inertion,updation,deletion.
*constraints there are 3 types
1.Domain Integrity
* Not null:Donot allow null value.
* check: Limits the range of values or domain, checks
the values which a col can have
2.Entity Integrity
* Unique key:donot allow duplicate values, but allows
one null per col.Can have multiple unique constraints on a
table





* Primary key : Ensure no duplicate data and not allow
nulls.

3.Refrential Intrgrity
*Forgien key:Referntial integrity b/w 2 tables, one
table col values based on other table col values

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what are sparse columns?

572


What are the restraints imposed on the table design by a merge replication?

570


Why we use the openxml clause?

549


How can change procedure in sql server?

526


What are system databases in ms sql server?

541






What is database black box testing?

611


What is update locks?

514


What are the steps you should follow to start sql server in single-user mode?

490


Explain about merge replications?

599


What are trace files?

535


What happens if null values are involved in string operations?

561


Why is sql server log file full?

540


What is the name of the Database which IBM mainframe uses?

544


How would you choose between a clustered and a non-clustered index?

547


What is the difference between indexing and hashing?

552