I have a table with 2 foreign keys, 1 leading to a individual person table and 1 leading to a company table.
I want to set it up so that mysql will allow any 1 of the foreign keys to be null but fail to insert if both are null.
If that is not the case I will just enforce the rule on the front end.
EDIT: This is different than other questions is that the key could be one or the other or both. From what I read in the answers they are only talking about it being one table or the other table not both
Thank you for your time