I have 2 tables, with fields:
products -> num, name, price, size
carts -> num, name, price
I want to do a do a query to select all "carts" as well as the "size" field if "num" matches. So I use:
SELECT carts.num, carts.name, carts.price, products.size FROM carts, products WHERE carts.num=products.num
The problem is, sometimes there is something in carts that is custom and does not match anything in products. I need this to be in the list as well.
I want to do this with one query, is it possible?
(I understand there are work arounds, with a query in a loop for products... or by adding the size field to carts... but this example is a simplified version of the issue at hand.)
Thanks!