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
Post a Comment