And of course the supermarket ID has to appear in your SELECT list.
In reply to Re^3: (OT) Exclusion selection on DBI by moritz in thread (OT) Exclusion selection on DBI by fernandes