It feels like it should be simple but I\'m missing some knowledge on joins.
Suppose I have two tables:
bi_view_in_invoices payments id