Question with GROUP BY command

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joe

    #1

    Question with GROUP BY command

    Hi everybody,

    I've got a table with following fields and data:

    int int double
    article,userid, price
    1 1 10
    1 2 15
    1 1 20
    2 1 10
    2 2 20
    3 2 100
    3 1 200

    What I want to know is, which user pays the highes price for every
    article. And this in one sql-command. The Result have to look like
    this:
    int int double
    article,userid, price
    1 1 20
    2 2 20
    3 1 200

    Any ideas?
Working...