I'm using a Firebird database for a software and found a problem
I've got 2 tables, for 2 different types of clients:
clientM(
rfcM varchar(12) primary key
some other data
)
clientF(
rfcF varchar(13) primary key
some other data
)
(length is fixed since it's a standard in México for the data I'm expecting users to input)
Here comes the problem, I need to create a third table:
clientPayment(
rfcClient varchar(13)
some other data
)
and that field must have a foreign key referencing both clientM.rfcM and clientF.rfcF, so I can use the same table to store payments from both types of clients
I could just leave the third table without a foreign key, but was hoping to add one and avoid users inputting incorrect data