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?
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?