MySQL Forums
Forum List  »  InnoDB

problem with SELECT
Posted by: Steven Baker
Date: December 18, 2005 08:35AM

The problem:

tableproduct:
ID1 NAME
1 Product1
2 Product2

tablesupplier:
ID2 NAME
1 Acme1
2 Acme2

connectiontable:
Suplier Product Price
1 1 10
1 2 130
2 1 12
2 2 120

i am looking for a SELECT statement that produces:
Product1 10 Acme1
Product2 120 Acme2
These are the productname, the lowest price for the product and the supplier that offers it for the lowest price.


Thanks
Steven

Options: ReplyQuote


Subject
Views
Written By
Posted
problem with SELECT
2204
December 18, 2005 08:35AM
1535
December 19, 2005 02:34AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.