what is the difference between primary key & foreign key?

Answer Posted / suraj menon

primary key is used to identify a row and it doesnot allow
null values. It avoids duplication of rows.

Foreign key will allow "Null values" and "Duplicte values"
and it refers to a primary key in anoter table.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to do paging with oracle?

572


can anyody please send me the dump for Oracle 10g certifications for DBA path?

1684


How to find out what oracle odbc drivers are installed?

568


Explain overloading. Can functions be overloaded?

568


What is the usage of save points in oracle database?

533






List out the components of logical database structure of oracle database.

581


What are the benefits of ordbms?

619


What is oracle open database communication (odbc)?

556


master table and child table performances and comparisons in Oracle ?

1662


Provide an example of a shell script which logs into SQLPLUS as SYS, determines the current date, changes the date format to include minutes & seconds, issues a drop table command, displays the date again, and finally exits.

1572


Assuming that you are an End User How to find that in the payment Batch some of the Invoice was  Missing To pay How to find That??

1268


Explain a data segment?

646


How to retrieve values from data fields in record variables?

565


How to create a stored program unit?

578


What is the fastest query method to fetch data from the table?

863