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
Describe and explain about SQL native client?
What are the basic features of a trigger in ms sql server?
Explain the properties of a relational table?
what is the difference between delete table and truncate table commands? : Sql server database administration
What is the difference between ddl,dml and dcl commands?
Explain what are the restrictions that views have to follow? : SQL Server Architecture
You have a table ‘test’ which is a copy of northwind employee table you have written a trigger to update the field ‘hiredate’ with the current date
What is stretch database in sql server?
What is ms sql server index?
What is service broker? : sql server database administration
What are different types of database indexes?
how to trace the traffic hitting a sql server? : Sql server database administration
Tell me what do you understand by a view? What does the with check option clause for a view do?
What happens if null values are involved in arithmetic operations?
What is the difference between substr and charindex in the sql server?