employer cover photo
employer logo
employer logo

Tata Consultancy Services

Part of Tata Group

Engaged employer

Tata Consultancy Services interview question

Difference between unique key and primary key?

Interview Answer

Anonymous

15 Mar 2018

Unique key means for every tuple we have a unique value for unique key.There can be one or more or none unique keys in any table. Primary key is ' unique' and 'not null' key which is used to differentiate the tuples. There can be only one primary key.