What is the use of placing primary key and foreign key
constrains on columns.
Answers were Sorted based on User's Feedback
Answer / jagadeesh b
If you maintain this relation ship you can get more advantages
1)you can not delete primary table directly..
2)duplicate values are not allowed in primary key table.
3)Null values are not inserted into primary key table so
validation is very easy fro m front end.(for ex; .net 2005).
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / deepak
1) PRIMARY KEY IS USED AS UNIQUE KEY, FOR AVOID DUPLICATION.
2) FOR VALIDATING DATA FROM PRIMARY KEY TABLE FOREIGN KEY USE.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / rajendraprasad cherukuri
To segregate the data in different tables belongs to a
particular entity so that data can be retrieved when
required more economically and in a faster way.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to create indexed view?
How do I completely remove sql server instance?
What are the 10 characteristics of data quality?
Explain filtered indexes benefits?
where can you add custom error messages to sql server? : Sql server administration
Well sometimes sp_reanmedb may not work you know because if some one is using the db it will not accept this command so what do you think you can do in such cases?
Write down the syntax and an example for create, rename and delete index?
Difference between 2NF &3NF ?
What is the cpu pressure?
How you can get a list of all the table constraints in a database?
What is the purpose of data source?
Define the term DML, DDL and DTL?
Oracle (3253)
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)