Old brain, new question

  • Rather than posting all of my failed queries, I'll just show what I'm trying to do.

    auctions

    fields

    ID,aucTitle

    values

    1,"Auction 1"

    2,"Auction 2"


    bids

    fields

    id,amount,bidderID,aucID

    values

    1,100,1,1

    2,100,2,2

    3,105,3,1


    bidders

    fields

    id,bidderName

    values

    1,"Groucho"

    2,"Chico"

    3,"Harpo"

    Expected results

    fields

    aucID,topBid,bidderName

    1,105,"Harpo"

    2,100,"Chico"

  • I just realized that I posted this in the wrong forum as my server version is 2005. I'm copying to to what I hope is the right one.

  • The location of the new post is http://www.sqlservercentral.com/Forums/Topic1709703-338-1.aspx. Please respond there instead of on this post to help keep any answers together. Thanks, folks.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply