Question: I need to transfrom bits into char array or string, help to find best way to store bits and what shoud I do if for example I have 18 bits I will make 2 char and 2 bits?

Answer: 
```
SELECT 
  tb1.booking_ref, tb1.investor, tb2.cost, tb3.product
FROM 
  tb1
      inner join tb3
          on tb1.location = tb3.location
      left join tb2 
          on tb1.booking_ref = tb2.booking_ref
              and tb1.investor = tb2.investor 
WHERE tb1.investor = '12345'

```
Instead of in the `WHERE` clause, add `tb1.location = tb3.location` to an `ON`/`AND` clause.

Answer before the question update: yes, it would.

Where did you state the relationship between table `tb3` and either of `tb1`, `tb2`? For joins, you need to have a relationship between certain columns among these tables.