SELECT 
  invoice_head.invoice, 
  customers."name"
FROM 
  public.customers, 
  public.invoice_head
WHERE 
  invoice_head."customer code" = customers."customer code";
