AP Workbench SQL - Adding Holds to Query
I am trying to be able to query more tabs on the AP Invoice Workbench. However, when I add the AP_HOLDS_ALL table I get no results.
I have tried to joining AND aia.invoice_id = aha.invoice_id, but that does not solve the problem. I know AP_HOLDS_ALL does not have a primary key, so I am not sure how to add this in so I can pull the holds tab information as well. Maybe I am missing some Inner/Outer joins somewhere?
Below is what I have at the moment and where I am stuck....