Sql – Superkey vs. Candidate key

databasedatabase-designddlsql

What difference between Super and Candidate key in ERDB?

Best Answer

A superkey is a set of columns that uniquely identifies a row. A Candidate key would be a MINIMAL set of columns that uniquely identifies a row. So essentially a Superkey is a Candidate key with extra unnecessary columns in it.