Postgresql – Postgres – how to add foreign key nullable constraint for two different columns coming from diff tables
I have three tables 1. Account 2. dept and 3. managers In the managers table I need to add both account key and dept key as foreign key but one will null and other will have value, means if inserted…