That should do it!
SELECT
*.orders
FROM orders INNER JOIN products
ON orders.product_id = products.product_id
WHERE products.manufacturers_id =1
ORDER BY orders_id
Marcos Placona
2010-03-15 12:34:45
That should do it!
SELECT
*.orders
FROM orders INNER JOIN products
ON orders.product_id = products.product_id
WHERE products.manufacturers_id =1
ORDER BY orders_id
The simple way would be:
SELECT * FROM Orders WHERE product_id = 1
WHERE products.manufacturers_id = 1 AND products.product_id = orders.product_id
That's if you want to join the two tables. And besides that you request a product_od instead of a product_id