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 |
Can store procedure call by user define function in SQL server?
What is function of CUBE ?
What are the steps to process a single select statement?
What is sqlcmd?
Can the query output be sorted by multiple columns in ms sql server?
what is differencial backup?how to work?Anybody explai it?
How to restart SQL Server in single user mode? How to start SQL Server in minimal configuration mode?
What is the sql case statement used for? Explain with an example?
What is difference between sql and sql server?
How to replace given values with null using nullif()?
Advantages and Disadvantages of Cursor?
15 Answers Polytechnic, TCS, Zenith,
What is a Lock and let me know Different types of locks?
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)