Jump to content

COUNT and GROUP BY from multiple columns...


emexinc

Recommended Posts

...i've come close to answers, but nothing that has worked thus far...

...firstly i want to search a mysql database...
...but i need to search multiple columns...
...but i do not want duplications, so if two or more results are the same, i would like that to only be counted as one result...

...here's what i'm looking at...i have a mysql database with artist names, first and last...and i currently have four sets of these ( i've only come across four artists max thus far for one song with the songs that i have )...and i'd like to have the total number of artists beginning with the letter 'A' ( for example ) whether it be their first or last name that would start with that...but i do not want to the same artist counted more than once even if they have their name under multiple songs...any direction would be great...i'm sorta out of ideas at this point...thanks
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.