mysql - Pulling data from database table, based on categories -


i have table has fields category,city,mobile , email data. need create report like: each category in table need count of distinct mobile , distinct email each city

select category, count(distinct mobile), count(distinct city) your_table group category 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -