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
How do I perform an unattended install of sql server 2000?
What is the difference between stored procedure and functions?
How many instances per computer are there in sql server 2000?
Explain sql server authentication modes?
Can a database be shrunk with users active?
What is log shipping?
A trigger can reference objects outside the current database? State true or false.
What happens when converting big values to integers?
What is sql or structured query language?
Tell me what is the stuff and how does it differ from the replace function?
How to change the ownership of a schema in ms sql server?
How do I delete a sql server database?
If no size is defined while creating the database, what size will the database have?
IF more than one Site is accessing the same Database server and I want to move the DB with Minimum down time? How will you do
How can i Relate Tables in SSIS