
barneyb
Senior Member

Posts: 413
Joined: Nov 2002
|
Thu October 06, 2005 4:49 PM
|
|

I can't say for sure, but I'm thinking that if you could track current price in one table, and then have another table for all the bids (both actual and max). Each time a bid comes in, you scan the table for the earliest bidder that has a max bid of at least 110% of the new bid, and automatially add a bid on his behalf. That, of course, starts the process over again, since a new bid was made.
SELECT TOP 1 FROM bids WHERE maxBid >= #1.10 * latestBid# ORDER BY createDate
If that returns a record, bid on that bidder's behalf, and repeat.
-------------------------
barneyb bboisvert@gmail.com http://www.barneyb.com/ Got GMail? I have 198 invites.
|
|