Hello all, Please help me if you can .. Have table category, and table websites. how to show category names and count of websites in each category.... Thank you in advance
assuming you've got a table named websites with a column of url's and a column of categories.. select category_column, count(*) from websites group by category_column
If you could show us the 'describe' (ie. in SQL query: desc category) of the tables in question I'm sure that you would receive the exact query that you are looking for. ...and yes, you would need to use an aggregate function (such as COUNT).