Hi
I have this data
CustBid idProduct bidAmount bidDate
1 272 165.00 2009-11-20 09:05:31.640
1 272 155.00 2009-11-20 09:05:25.480
4 272 95.00 2009-11-19 12:40:44.973
4 272 85.00 2009-11-19 12:40:40.377
1 272 85.00 2009-11-12 11:20:52.400
1 272 85.00 2009-11-12 11:20:52.400
4 272 75.00 2009-11-12 11:11:02.080
1 272 65.00 2009-11-12 11:20:20.170
1 272 45.00 2009-11-12 11:08:02.407
1 272 25.00 2009-11-12 11:05:06.663
and I want to be able to list the second highest bid that is not the same user so what i would like to display is 95 because bidder 1 has two higher so i dont want those proxy bids visible, what query could i use? have this so far
Select bidhistory.idCustomerBid as CustBid, bidhistory.idProduct, bidhistory.bidAmount, bidhistory.bidDate From bidhistory where (bidhistory.idProduct = 272) AND (idCustomerBid <> 2) order by bidAmount desc