Im having some issues getting the result I want from two tables
table #1: history customer_id | Action ------------------------ 217 | buy ------------------------ 218 | sell ------------------------ 219 | hold ------------------------ table #2: Customers customer_id | name ---------------------------- 217 | Alan ---------------------------- 218 | Jan ---------------------------- 219 | Rick I have a really long query now, but essentially I want to add to match the name with the amount. I tried this but it didn't work:
(SELECT action AS action FROM "history` LEFT JOIN ON " customer(customer_id=customer_id)`) I'm not really familiar with doing queries so any help would be appreciated