Jump to content

Mysql Select Query


sugan
 Share

Recommended Posts

Hi,I have a table values as

Name SongsJohn aaaaTom bbbbJohn cccccJohn eeeeJack ffffffKate gggggTom hhhhh
Now, I want select query to display name and count the songs they sang as:
Name No. of SongsJohn 3Tom 2Jack 1Kate 1
How to write a query for this?Kindly Help!Regards,Suganya
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...