Pergunta de entrevista da empresa Paycom

Difference between foreign and primary key in SQL