If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > auction project

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-15-05, 13:03
tuere tuere is offline
Registered User
 
Join Date: Dec 2005
Posts: 2
auction project

i am building an auction site in class and i have to display the highest bidder on one of my pages. i was worndering how i would go about doing that?

i know that i have to do a select statement but what do i put in it to only choose the highest bidder for one particular item?
Reply With Quote
  #2 (permalink)  
Old 12-15-05, 15:17
lazyTrucker lazyTrucker is offline
Registered User
 
Join Date: Dec 2005
Posts: 14
try:

SELECT "colum name" WHERE item="item name" ORDER by "colum name" Dsc

failing that b a bit more specific

Last edited by lazyTrucker; 12-15-05 at 15:19. Reason: typeo2
Reply With Quote
  #3 (permalink)  
Old 12-15-05, 15:45
tuere tuere is offline
Registered User
 
Join Date: Dec 2005
Posts: 2
thanxx i'll try it first thing in the morning and let you know
Reply With Quote
  #4 (permalink)  
Old 12-19-05, 23:01
Jelly Link Jelly Link is offline
Registered User
 
Join Date: Dec 2003
Posts: 39
there may be more than 1 person with the same bid, so to get highest bid, time of bid will determine too.
so to get the winner :

SELECT top 1 bidder_name, bid, time WHERE item='item name' ORDER by bid desc, time asc.
__________________
Link Link
Reply With Quote
  #5 (permalink)  
Old 01-16-06, 05:43
kropes2001 kropes2001 is offline
Registered User
 
Join Date: Nov 2005
Location: Honolulu HI
Posts: 118
thats jsut what i was going to suggest was to use a TOP in there.
__________________
.
.
http://www.GetMySiteOnline.com - Can you help me Get My Site Online ? (Yes. That is EXACTLY what we do.)

http://www.GetMySiteOnline.com/FightingSpam/
__________________________
caeli enarrant gloriam Dei !
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On