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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.