I have two cases where I would like to establish an “optional” relationship within a single table or between two tables.
Firstly:

I want to set this relationship as optional, in other words: there will be categories and subcategories in the same table, so the subcategory column is optional.
Secondly:

Here I want to make sure that a House cannot exist without a member (mandatory relationship), but a member can be without any House (optional relationship).
I have no experience with Microsoft SQL Server, and I have no idea how I can change this relationship.
Here is the end result in an Oracle chart:

Gregy source
share