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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Microsoft Access (Find Duplicate Query Str)

Status
Not open for further replies.

visualkid

Programmer
Feb 19, 2003
11
MY
Guys ,

currently i got a table named "Searchonly" with a field named "Searchstr"..... this field store all the search term that the user key in ....... whenever they perform a search

what i want is that, i want to have a query str that can return me the following information

Searchstr | Counter
-------------------------
a | 5
b | 20
c | 60


Note : counter is used to identify the number of same str appeared in that table....... Please help
 
Hi, try this:

[tt]
select Searchstr, count(Searchstr) as Counter
from Searchonly
group by Searchstr
[/tt]

Greetings from Germany,
Jens K.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top