explain the type of contraints

Answers were Sorted based on User's Feedback



explain the type of contraints..

Answer / reva ram sahu

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 ?    4 Yes 0 No

explain the type of contraints..

Answer / surya

Constraints are used to provide the scope to table data...
they are..
Primary key
unique key
not null
check
foriegn key
default..

Is This Answer Correct ?    3 Yes 0 No

explain the type of contraints..

Answer / anand

primary constraint
check constraint
notnull constraint
foreign key constraint

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More SQL Server Interview Questions

When cursors are useful?

0 Answers  


Is it possible to create tables in stored procedures using a variable for the table name?

2 Answers  


Which table keeps the locking information?

0 Answers  


What is an indexed view?

0 Answers  


Do you know what is raid and what are different types of raid configurations? : SQL Server Architecture

0 Answers  






How to insert data with null values?

0 Answers  


What is meant by referential integrity?

0 Answers   Blue Star,


How to create an multi-statement table-valued function?

0 Answers  


Describe in brief databases and sql server databases architecture.

0 Answers  


is there a column to which a default can't be bound? : Sql server database administration

0 Answers  


How to generate random numbers with the rand() function in ms sql server?

0 Answers  


How to round a numeric value to a specific precision?

0 Answers  


Categories