Is it Possible? (1 Viewer)

asp_learner

Registered User.
Local time
Today, 16:27
Joined
Jun 7, 2001
Messages
46
Hi,

I asked this a few weeks ago but never got an answer. In SQL, is it possible to do a Select Top 10 By Person.

Thanks,
Eva
 

jatfill

Registered User.
Local time
Today, 11:27
Joined
Jun 4, 2001
Messages
150
yes... just start with
SELECT TOP 10

& the rest of your statement...

If your doing sums or other calculations, just use the GROUP BY function on the Person.
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 11:27
Joined
Feb 19, 2002
Messages
43,224
Either solutions.mdb or qrysmp97.mdb or rptsmp97.mdb have a sample of how to do this. Solutions.mdb is available in the installation cd for Access 97 and older. The other two sample db's are available at the Microsoft download site: http://www.microsoft.com/downloads/search.asp
 

asp_learner

Registered User.
Local time
Today, 16:27
Joined
Jun 7, 2001
Messages
46
Thank you both. I will look at the sample, I had tried to do it the way I had mentioned but for some reason I had run into an error. Now that I know it is doable I will look at the samples.

Eva
 

Users who are viewing this thread

Top Bottom