waht is the difference between primary key and super key?

Answer Posted / kishore singh bisht

primary key is a uniquely identified key,in primary key we use only a single attribute to identify a row.......
example:- roll no. of an student, employee id etc.
primary key=unique+not null.
and super key is a combination of two or more attributes which make the uniqueness.......
ex:-name+d.o.b+contact no...
these three attributes make the uniqueness by which we can easily identify.............

Is This Answer Correct ?    11 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

6. Display the client name and order date for all orders using the traditional method.

1763


Who developed oracle & when?

579


Why do I get java.lang.abstractmethoderror when trying to load a blob in the db?

567


What is the maximum limit on the number of columns in a table?

561


What are the roles of dba?

620






Can we commit inside a function in oracle?

568


I am using an Oracle 8i Database my data contains Clob data. I am using toad version 7.6 i am able to get the data in toad but unable to extract the data in excel.when trying to extract the data into the excel the toad error says out of memory. Can any body please help me to extract the data through the same toad version. Thanks in advance

1861


what happened to the global index when I truncate the data in one of the partition?

1528


How to recover a dropped table in oracle?

616


how can db_files > maxdatafiles since db_files is for instance and the later is for database

2183


How will you write a query to get a 5th rank student from a table student_report?

1393


How to define a data source name (dsn) in odbc manager?

543


How to store pictures on to the database?

534


Is there a combination of "like" and "in" in sql?

600


Can we write insert statement in function in oracle?

543