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 SQL Azure Data sync?
Define magic tables in sql server?
What is ddl and dml commands?
How connect excel to sql server?
How to list all dsn entries on your local machine using odbc_data_source()?
What does Master database contains?
1)what is the difference between Reinitializing a Subscription and synchronization the subscription? 2)when to use reinitializing ? 3)when to use synchronization? 4)when adding table or deleting a table what to do?(reinz.. or syn) 5)when adding a column what to do?
How to Update from select query in sql server?
Can you explain what is the use of custom fields in report?
Explain about extended stored procedure?
Explain transaction isolation levels in sql server?
What is the difference between join and inner join?
What is a recursive stored procedure in sql server?
Where is trigger in sql server?
Can you import Microsoft Excel data to SSRS?