gsc123
Programmer
- Jan 24, 2008
- 197
I'm moving to SQL Server 08 soon so I'd like to drop this problem here...
Hello,
I have a problem with this query
SELECT Min(bidAmount) AS price FROM BidHistory WHERE (((BidHistory.bidAmount) In (SELECT Min(BidAmount) FROM BidHistory WHERE BidAmount<10009999 and idproduct = 1560)))
It will always select min bid from the bidhistory table, the problem is, it will always give me the same value, if lowest bid is 210 it will always be 210, even though 2 bidders have bid more if you understand what I mean, if there are 2 bidders bidding then it should give me the min bid that has been bid on with that idproduct code....
so its higher bid from bids of many users but still lowest if the other bidders have not reached the proxy bid in the bidhistory table
Hello,
I have a problem with this query
SELECT Min(bidAmount) AS price FROM BidHistory WHERE (((BidHistory.bidAmount) In (SELECT Min(BidAmount) FROM BidHistory WHERE BidAmount<10009999 and idproduct = 1560)))
It will always select min bid from the bidhistory table, the problem is, it will always give me the same value, if lowest bid is 210 it will always be 210, even though 2 bidders have bid more if you understand what I mean, if there are 2 bidders bidding then it should give me the min bid that has been bid on with that idproduct code....
so its higher bid from bids of many users but still lowest if the other bidders have not reached the proxy bid in the bidhistory table