What are constraints? Explain different types of
constraints?

Answer Posted / kannan g

Constraints are used to restrict or protect the data and
accessing from the table
There are 5 types of constraints available,
That,
1.Primary-which is not allowed duplication and Null values
2.Unique-Which is also Not allowed duplication But It is
allowed one single null values
3.Foreign - Which is allowed duplication and Null values.
But It refers Value from primary Key table to its own table
Value.
4.Check Constratints
5.Not null

Is This Answer Correct ?    10 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where the sql logs gets stored?

536


What is data block and how to define data block size?

594


What is abstracting periodical?

520


What is database white box testing?

669


What does the not null constraint do?

573






Do you know what guidelines should be followed to help minimize deadlocks?

532


What the difference between UNION and UNIONALL?

568


What does it mean to manipulate data?

555


What are Row versions of DataRow?

601


What is the difference between varchar and varchar(max) datatypes?

550


Which Model uses the SET concept

577


What are the events recorded in a transaction log?

499


Explain the difference between cross join and full outer join?

494


Write a sql query to delete duplicate records from a table called table1

580


What are the types of subscriptions in SQL Server replication?

543