answersLogoWhite

0


Best Answer

primary key is the unique constraint on the table,which identify each tuple uniquely where as secondary key is also constaint on table but it can identify more than one reconds in table...

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

AnswerBot

2w ago

A primary key is a unique identifier for a record in a database table and is used to ensure each record is uniquely identifiable. A secondary key is a key used for sorting and indexing purposes, but can have duplicate values within a table.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What the difference between primary key and scendary key?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Information Science

What is the difference between a primary key and a foreign key?

A primary key uniquely identifies each record in a table and ensures data integrity. A foreign key establishes a relationship between two tables, referencing the primary key of another table to enforce referential integrity.


What is the difference between a Primary Key and a Secondary Key?

A Primary Key is a unique identifier for each record in a database table and is used to enforce entity integrity. A Secondary Key is a non-unique index that is used for querying and organizing data efficiently but does not have the constraint of uniqueness.


What is difference between primary key and foreign key?

A primary key is an attribute (or combination of attributes) that uniquely identifies each row in a relation. A primary key is designated by underlining the attribute name. The primary key of an entity set allows us to distinguish among the various entities of the set. A foreign key is an attribute in a relation of database that serves as the primary key of another relation in the same database.


What is the difference between primary key and secondary key in database?

A primary key is a unique identifier for each record in a database table and is used to ensure data integrity and enforce entity integrity. A secondary key, also known as a candidate key, is an alternate unique key that can be used to identify records, but is not designated as the primary key.


What are the differences between super key primary key candidate key and foreign key?

Super key: A set of attributes that uniquely identifies a tuple in a table. Primary key: A specific super key chosen to uniquely identify each tuple in a table and must be unique and not null. Candidate key: Any super key that could be chosen as the primary key. Foreign key: A field in a table that is a primary key in another table, used to establish a relationship between the two tables.

Related questions

What is the difference between primary key and secondary key?

There is two difference between them. 1. The not null constraint is by default added to primary key, it means, primary key attribute cannot accept null values, whereas, the attribute declared as unique can accept null values. It is the major difference between the two. 2. Secondly, we can have only one primary key in a relation, whereas, multiple attributes can be declared unique at the same time.


What is the difference between a primary key and a foreign key?

A primary key uniquely identifies each record in a table and ensures data integrity. A foreign key establishes a relationship between two tables, referencing the primary key of another table to enforce referential integrity.


What is the difference between primary key and candidate key?

Candidate Key is used to uniquely identify the records of a table. An attribute becomes a Primary Key, if all the other candidate keys lose race for being qualified as Primary Key.


What is the difference between primary key and unique index?

Primary key is a type of unique index with no null constraint on the columns involved. There can only be one Primary key whereas you can create other unique indexes on the table.


Difference between composite and primary key?

There are two types of keys in any database; composite and primary keys. Composite key differs from primary key in that it contains more than one column while primary key is composed of only one field and cannot have a null value.


What is the difference between Primarey key and Forn Key?

establishing a relation between two tables called fornkey.......the colum name should be unique is called "primary key"...a table contain only one primary key...a table contain more then one fornkey....


What the differences between primary key and foreign key?

A primary key is a unique identifier for a record in a table and ensures each record is uniquely identified. A foreign key establishes a relationship between two tables by referencing the primary key in another table. It enforces referential integrity by ensuring that the values in the foreign key column correspond to values in the primary key column of another table.


What is the difference between a Primary Key and a Secondary Key?

A Primary Key is a unique identifier for each record in a database table and is used to enforce entity integrity. A Secondary Key is a non-unique index that is used for querying and organizing data efficiently but does not have the constraint of uniqueness.


What is difference between primary candidate and candidate key?

don't ask me I'm trying to find out to but i think it has something to do with the government


What is difference between primary key and foreign key?

A primary key is an attribute (or combination of attributes) that uniquely identifies each row in a relation. A primary key is designated by underlining the attribute name. The primary key of an entity set allows us to distinguish among the various entities of the set. A foreign key is an attribute in a relation of database that serves as the primary key of another relation in the same database.


What is the difference between primary key and secondary key in database?

A primary key is a unique identifier for each record in a database table and is used to ensure data integrity and enforce entity integrity. A secondary key, also known as a candidate key, is an alternate unique key that can be used to identify records, but is not designated as the primary key.


Difference between partial dependency and fully functional dependency?

The difference is that partial dependency is when a database's attribute is only partially dependent on the primary key. Fully functional dependency is when the attribute is entirely dependent on the key.