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
What is the purpose of optimization?
How does the report manager work in SSRS?
What languages bi uses to achieve the goal?
How to concatenate two character strings together?
What kind of problems occurs if we do not implement proper locking strategy?
What is for xml in sql server?
Is mysql the same as sql server?
Ms sql server index?
what is difference between NULL and ISNULL in SQL Server 2008?
Which sql server table is used to hold the stored procedure scripts?
When a primary key constraint is included in a table, what other constraints does this imply?
Is INSTEAD OF trigger directly applicable to Table ?
What are the different Topologies in which Replication can be configured?
Explain features and concepts of analysis services?
What are partitioned views and distributed partitioned views?