Jump to content

Count, group by, Oh I don't know, I'm hopless!


alfieshooter

Recommended Posts

Hi

 

Am having problems with a query which I know should be really simple.

 

I have a database called Fanfeed:

 

username, fanof, type

 

I want to be able to count how many unique entries each member has:

 

Rita, Sue, R

Rita, Sue, R

Bob, Rita, R

Sue, Bob, R

Sue, Rita, R

Bob, Sue, R

Rita, Sue, R

Sue, Bob, R

 

Would output:

 

Sue 2

Rita 2

Bob 1

 

(Even though Sue has 4 entries, she only has 2 unique entries from Bob and Rita etc.)

 

I’m sure it should be easy...PLEASE HELP!

 

Alfie.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.