What are constraints? Explain different types of
constraints?

Answer Posted / haritha

constraint is a rule which can not be voilated by end users.
Different types of constraints are available.They are:-
1)default constraint:-which is used to define a default
value.
2)primary key:-the key which does not allows duplication
and null values.
3)foreign key:-the key used to refer primary key defined
field in another table and it allows duplication.
4)null:-which allows NULL values.
5)not null:-which does not allows NULL values.
6)unique key:-which does not allows duplication but allows
NULL values.

Is This Answer Correct ?    283 Yes 70 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I create a stored procedure in sql server?

517


How to create a store procedure with encryption?

518


What do you understand by sql server agent?

531


What is the use of partition by in sql server?

507


query processing

1736






Explain the use of containers in ssis?

524


How data can be copied from one table to another table?

507


What are the difference between clustered and a non-clustered index?

584


How many types of schemas are there?

527


Once setting replication, is it potential to own a publisher as sixty four bit sql server and distributor or subscribers as a thirty two bit sql server?

543


how would you improve etl (extract, transform, load) throughput?

540


Explain log shipping?

581


Write a program to fetch first 10 records from a file?

600


What is trigger and different types of Triggers?

571


How to download and install microsoft .net framework version 2.0?

546