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
Can you tell me some of the common replication dmv's and their use? : sql server replication
What do you understand by replication in sql server?
What is the name of the Database which IBM mainframe uses?
Explain what stored procedure sp_replcounters is used for? : sql server replication
How many clustered indexes can be created on a table? I create a separate index on each column of a table. what are the advantages and disadvantages of this approach?
How many databases instances are there in sql server 2000?
What are the different acid properties?
What are actions, how many types of actions are there, explain with example? : sql server analysis services, ssas
What is a non-clustered index?
What is the report model project?
What are different types of schemas?
What is coalesce in sql server?
What is checkpoint in sql server?
how can you attach more than 20 ldf files in sql server
Explain the commands in sql server?