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 |
Explain powershell included in sql server 2008?
How to retrieve range of 10th rows to 20 th rows from total rows from a database table.? (Not from Dataset)
10 Answers Cognizant, Infosys,
how to copy sysdatabase file from c: Drive to D: Drive in SQL Server.
What is logon trigger?
Tell me what is difference between view and materialized view?
How do I edit a stored procedure in sql server?
Can we rollback records deleted by a truncate statement?
3 Answers CarrizalSoft Technologies, United Healthcare,
What is an extended stored procedure? Can you instantiate a COM object by using T-SQL?
What is dirty read?
What is the use of for clause?
How to check parameter value in stored procedure sql server?
What is the use of attributehierarchyvisible ? : sql server analysis services, ssas
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)