I have three tables in Mysql
- table A-> uid, itemType, balance,orderType
- table B-> orderId, itemType, qty
- table C-> uid,orderId
I need to get (balance-qty) for every uid:orderIdcombination for specific type of item. How can I connect table A and table B if they have no common column to join on. But both of them are connected to table C.