What is a composite key?

A key made of two or more columns is known as composite key. Composite key shows how columns in a table relate to each other. when there is no unique value in a table a unique value is created combining two columns,thus creating a unique combination which works as primary key.