I have a ‘guests’ table and ‘invitations’ table bound with many-to-one relationship in a postgreSQL database. I have removed some guests and now I want to remove invitations that have no guests. I tried using ‘COUNT’, but aggregates are not allowed in WHERE clause.
I have a ‘guests’ table and ‘invitations’ table bound with many-to-one relationship in a
Share
Check this :