What are primary keys, unique keys, and foreign keys?

Explain the purpose of a primary key, a unique key (UNIQUE), and a foreign key. How does a primary key differ from UNIQUE?

ExplainDDL, keys, and normalizationJuniorBackendQAData Engineer