34534534534555
IS-IT--Management
Hi
I am running MySQL client version: 3.23.49
I have a table: Auction and another table: Bid (for accepting bids on an auction).
In the Bid table is: Auctionid, Bid_username, Bidprice
I am trying to SELECT the max bid from the bid table for a particular auction. What i have is
...which returns a new line for every bid in the auction table. Could someone please show me how to just get the MAX bidprice?
I am vaguely aware of SubSelect (i am not sure that this mySQL supports it)
Many TIA
| Feedback is always appreciated as this will help to further our knowledge as well |
I am running MySQL client version: 3.23.49
I have a table: Auction and another table: Bid (for accepting bids on an auction).
In the Bid table is: Auctionid, Bid_username, Bidprice
I am trying to SELECT the max bid from the bid table for a particular auction. What i have is
Code:
$sql = "SELECT auction.auctionid, auction.bookcondition, book.edition, bid.bidprice
FROM auction, book
LEFT JOIN bid ON auction.auctionid=bid.auctionid
WHERE sellerusername <> '$username'
AND auction.isbn = book.isbn";
...which returns a new line for every bid in the auction table. Could someone please show me how to just get the MAX bidprice?
I am vaguely aware of SubSelect (i am not sure that this mySQL supports it)
Many TIA
| Feedback is always appreciated as this will help to further our knowledge as well |