Jump to content

[SOLVED] Combining results from 2 arrays


padams

Recommended Posts

I may be off-track but do you actually need the "as num" part after count(tries2.playerID)?  I assume it's to convert it to a number (I've never used it), but a) don't you need CAST() and b) doesn't count return a number anyway?  As the JOIN uses AS for aliases, it might be mucking it up.

 

I'm probably wrong, but I thought I'd say it anyway.

Link to comment
Share on other sites

Barand, your solution does work on mySql 5.0. I had my site migrated to a new server and it now works fine, so it was clearly an issue with the older version of mySQL (3.23). Not sure what particular part of the query was the problem, but I'm guessing the join or on statement was causing the grief.

 

Thanks again for all the help!

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.