Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DIsplay a field other than the aggrogate function field

Status
Not open for further replies.

jacquelinewalton

Programmer
Jul 29, 2004
7
US
I have a field called MemberName(text) and a field called goldsmithing(number)

I want to display the MEMBERNAME who has the highest goldsmithing rate.

I have:

SQL = "Select * from Members Where Goldsmithing = MAX(Goldsmithing)"

Its giving me an aggrogate function error. Can someone please explain how to do this?
 
SQL = "Select Top 1 * from Members ORDER BY Goldsmithing DESC"

-VJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top