Talk is cheap

1
2
3
4
SELECT id,amount FROM product
LEFT JOIN product_details
ON (product.id = product_details.id)
AND product_details.id=2;

EOF