what is Constraint? How many types of constraints in SQL ?
Answer Posted / nambi rajan
A constraint is a property assigned to a column or the set
of columns in a table that prevents certain types of
inconsistent data values from being placed in the columns.
There are 4 Types of Constraints.
• Entity Integrity - Primary and Unique
• Domain Integrity - Default, Check and Not Null
• Referential integrity – Foreign Key
• User-Defined Integrity - enforces some specific
business rules that do not fall into entity, domain, or
referential integrity categories
| Is This Answer Correct ? | 13 Yes | 7 No |
Post New Answer View All Answers
What happens if null values are involved in boolean operations?
Why de-normalization required?
Can foreign key be duplicate?
Why it is recommended to avoid referencing a floating point column in the where clause?
What objects does the fn_my_permissions function reports on? : sql server security
Which event (check constraints, foreign key, rule, trigger, primary key check) will be performed last for an integrity check?
how we use window authentication connection with sql server.?
What is the temp table?
How to connect php with different port numbers?
Define msdb database?
Explain the third normal form(3nf)?
Can we write a distributed query and get some data which is located on other server and oracle database?
What is fill factor and pad index?
Does partitioning help performance?
How can I add Reporting Services reports to my application?