Hi there.<br>
<br>
I wonder if someone could help me out.<br>
<br>
I have a table which contains the following fields<br>
<br>
date_time<br>
user_name<br>
page_title<br>
<br>
what I'm trying to do is get a count (just a single number) of all the user_names that have more than one entry for a particular page title?<br>
<br>
The following code gives me the summary list<br>
<br>
------------------------------<br>
SELECT Count(*) <br>
FROM YourTable<br>
WHERE page_title='Title of Page' <... or whatever ...><br>
GROUP BY user_name<br>
HAVING Count(page_title) > 1;<br>
---------------------------------<br>
<br>
which gives me a list of numbers that match the criteria. What I need to find out, is how many numbers there are in that list .... and here's the tricky part; It has to be all in one statement.<br>
<br>
Can anyone help?<br>
<br>
Thanks.
<br>
I wonder if someone could help me out.<br>
<br>
I have a table which contains the following fields<br>
<br>
date_time<br>
user_name<br>
page_title<br>
<br>
what I'm trying to do is get a count (just a single number) of all the user_names that have more than one entry for a particular page title?<br>
<br>
The following code gives me the summary list<br>
<br>
------------------------------<br>
SELECT Count(*) <br>
FROM YourTable<br>
WHERE page_title='Title of Page' <... or whatever ...><br>
GROUP BY user_name<br>
HAVING Count(page_title) > 1;<br>
---------------------------------<br>
<br>
which gives me a list of numbers that match the criteria. What I need to find out, is how many numbers there are in that list .... and here's the tricky part; It has to be all in one statement.<br>
<br>
Can anyone help?<br>
<br>
Thanks.