QUERY PLAN
GroupAggregate (cost=164.55..164.57 rows=1 width=134)
Group Key: sip.id
-> Sort (cost=164.55..164.55 rows=1 width=105)
Sort Key: sip.id
-> Hash Right Join (cost=37.93..164.54 rows=1 width=105)
Hash Cond: ((lower((ip.title)::text) = lower((sip.title)::text)) AND (lower(ip.description) = lower(sip.description)))
-> Seq Scan on tbl_inventory_products ip (cost=0.00..90.71 rows=2871 width=61)
-> Hash (cost=37.91..37.91 rows=1 width=102)
-> Seq Scan on tbl_sales_invoice_products sip (cost=0.00..37.91 rows=1 width=102)
Filter: (sales_invoice_id = 2325)