473,382 Members | 1,635 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Question with GROUP BY command

Joe
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?
Jul 19 '05 #1
0 980

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jennifer | last post by:
I've got a question that may not be especially appropriate to this group but since it involves a SQL Server 7 job, thought I'd ask. The company I work for has NT4 servers with SQL Server 7 in...
7
by: jane | last post by:
HI, I was ask to do a query to get the member active condition I had table to show the member number and active status in three month. ACC A1 A2 A3 ---- -----------...
3
by: Tcs | last post by:
My backend is DB2 on our AS/400. While I do HAVE DB2 PE for my PC, I haven't loaded it yet. I'm still using MS Access. And no, I don't believe this is an Access question. (But who knows? I...
4
by: Sillaba atona | last post by:
I should implement in C POSIX the possibility to have an exec command in background like the command & in bash shell. I simple used a fork+exec without a wait command in the master process. It...
1
by: peter pilsl | last post by:
I have a question to sql and dont know exactely if this is the right place to ask. If not I would be glad if anyone could point me to the correct group/list/resource. Thnx. I want to perform a...
7
by: Scott Frankel | last post by:
Still too new to SQL to have run across this yet ... How does one return the latest row from a table, given multiple entries of varying data? i.e.: given a table that looks like this: color...
9
by: JoeC | last post by:
I am trying to create a simple maze program on a window. I am trying to create a global var to handle the commands. I declare: #include "space.h" #include "player.h" #include "Command.h" ...
5
by: Jonay Aloat | last post by:
I know that I can use the news group to post questions. But last time, one of my friend show me that you can do the same thing using a unix command. I don't remember the command, but I know it is...
3
by: Bishop | last post by:
I'm using VB.NET with Sockets to read newsgroup content. I seem to have everything working good but when I read the messages in the newsgroup I don't seem to get the most recent messages. I issue...
1
by: Divided Sky | last post by:
Is there an msbuild-specific discussion group? Also, is there an msbee discussion group that is active? Is there a good resource for info about using Microsoft.Build.BuildEngine.Engine class? ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.