Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

SELECT issues

$
0
0
I have two SELECTS that grab the info that I need to create a csv file.

$result = mysql_query("SELECT product_attribute.supplier_reference, product.price, product.wholesale_price
FROM product_attribute, product
WHERE product.id_product = product_attribute.id_product");

$result = mysql_query("SELECT product_supplier.product_supplier_reference, product.price, product.wholesale_price
FROM product_supplier, product
WHERE product.id_product = product_supplier.id_product");

Basically, I want the first one to run complete. It's fine as is.

For the second one I want to eliminate any records where product.id_product was present in the first SELECT and add the rest to the csv.

Any ideas?

TIA!

Ron

Viewing all articles
Browse latest Browse all 13329

Trending Articles