At the time of relating two tables, it is used.
foreign key (atributo) references [tabla] (atributo);
The foreign key of that table is related to the primary key of the other table, but whenever I see examples, the foreign key of the table I am going to relate coincides with the primary key of the example table:
foreign key (id_cap) references jugador (id_cap);
Can I relate a table whose foreign key does not equal the primary key of the other table?