what is Constraint? How many types of constraints in SQL ?

Answer Posted / manoj kumar

Contraint is a provision to limit or enforce the data in
the sql tables. It is of five types:-
1 Primary Key Constraint
2 Foreign Key Constraint
3 Unique Constraint
4 Not Null Constraint
5 Check Constraint

Is This Answer Correct ?    7 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain rdbms?

606


When do you think a developer should use sql server-based cursors?

524


What are the purpose of Normalisation?

640


What is attribute hierarchy? : sql server analysis services, ssas

524


You want to generate a report that is formatted as a chart. Can you use the report wizard to create such a report?

88






What do you mean by an execution plan?

568


What is an execution plan? How would you view the execution plan?

551


What are the different types of join?

573


Write the queries for commands like Create Table, Delete table, Drop Table etc.

612


What is nested transaction?

538


Why it is recommended to avoid referencing a floating point column in the where clause?

540


You have modified 100 store procedures and want to replicate these changes from development to prodution, and production can have users using the Server/DB, how would you replicate without causing issues?

1726


Why I am getting "the microsoft .net framework 2.0 in not installed" message?

515


What do you understand by a view? What does the with check option clause for a view do?

609


How to create an index on an existing table in ms sql server?

499