explain the type of contraints
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / anand
primary constraint
check constraint
notnull constraint
foreign key constraint
| Is This Answer Correct ? | 0 Yes | 1 No |
When we should use and scope of @@identity?
If no size is defined while creating the database, what size will the database have?
What is attribute hierarchy? : sql server analysis services, ssas
logshipping is Any difference 2000 and 2005?
Can select statements be used on views in ms sql server?
What are Sql Reporting Services and analysis services? Can u Explain
How does stuff differ from the replace function?
How to resolve the orphan use problem? : sql server security
between cast and convert which function would you prefer and why?
please differentiate between delete and truncate?
What is the Control Flow in SSIS
What is the difference between temp table and table variable?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)