Jump to content

[SOLVED] Count a Value once


rugzo

Recommended Posts

Hi all,

 

how can i count a value in a column once. I mean i have a table where many names are listed like -->

 

john

michael

john

sasha

smith

john

 

i want to use the count() function in my query but the result for example here should be 4 and not 6. john should only be counted once.

 

Thanks...

Link to comment
https://forums.phpfreaks.com/topic/154763-solved-count-a-value-once/
Share on other sites

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.