I've been researching whether it's valid to have a foreign key that refereces a partial primary key of another table.
From several sources (see below), it seems like it's not valid, however, it works perfectly fine using MySQL.
Is this behavior specific to MySQL, or is it valid to have a foreign key that references a partial primary key in general?
I would appreciate a link to some documentation that confirm any claims.
A FOREIGN KEY is a field (or collection of fields) in one table that refers to the PRIMARY KEY in another table.
https://www.w3schools.com/sql/sql_foreignkey.asp
Partial foreign key reference. A foreign key must refer to an entire primary key, and not just part of it
https://www.dataversity.net/primary-key-and-foreign-key-errors-to-avoid/