By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,101 Members | 959 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,101 IT Pros & Developers. It's quick & easy.

Occurences of a field in database

P: n/a
hello,

how can i sort events in mdb database in order to display the most
frequently events in database ? (count the occurences of a field)

for example :

28/12/2004 08:18:14 U_D671/FC667
28/12/2004 08:18:14 U_D671/FC667
28/12/2004 08:18:14 U_D671/FC667
28/12/2004 08:18:19 U_D671/FC670
28/12/2004 08:18:20 U_D671/FC670
28/12/2004 08:18:20 U_D671/FC670
28/12/2004 08:18:20 U_D671/FC670
28/12/2004 08:18:25 U_D671/FC671
28/12/2004 08:18:25 U_D671/FC671
28/12/2004 08:18:25 U_D671/FC671
28/12/2004 08:18:31 U_D121/TC120

would give :

U_D671/FC667 3
U_D671/FC670 4
U_D671/FC671 3
U_D121/TC120 1
thank you
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
run a query, put that field and then do a build on a second field that
would be Countmyfield: count(field)

then have the query group by. Turn it around and you should have
exactly what you want.

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.