I have a relation between two tables. The foreign key table can have a row related in the primary table. There's a way to enforce the value of the FK column to be NULL or one of the values of the PK column in the primary table?
Yes, why not? Did you try it?
If this is not what you meant, then please elaborate or re-word your question.