Hello,
How can I avoid referential integrity problems in the table S4MED_CALENDFAT if both columns ROTA and MEDICAO can have null values ?

I know this database structure might not be according with the best practices, but it is comfortable to me using it by now.
Thank you very much.
Best regards.
Jayme Jeffman