Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. What does this query do, exactly?
  2. Then let me know which thread this applied to, and I'll merge them.
  3. The spirit of competition always brings out the best in people.
  4. You're new -- please read the rules before posting.
  5. Sorry, lost track of this thread for a while -- any progress/updates?
  6. fenway

    UTF8

    UTF-8 is highly non-trivial to support -- if you don't need it, then avoid the headache.
  7. Unless you want ALL of them, use * -- if you want something lazy, then write a function that will deal with the column definitions fory ou.
  8. Drop the straight_join -- otherwise, you've told mysql that you're smarter than it.
  9. Just delete the MYI file and repair the able.
  10. The query simply lines up each matching parentid row, pairwise -- then it checks to see which rating column is bigger. Since you want to find the largest one, that's the one where there is no larger value; and in a LEFT JOIN, that's where the rating is NULL.
  11. If your table has more than 50, it's broken.
  12. I suppose so -- you can use a row counter, and roll-your-own average.
  13. And you're posting this thread twice because...?
  14. I feel like you've asked this question before.
  15. Getting closer -- so what output does that produce, and what's wrong about it?
  16. This really isn't the place for php syntax errors.
  17. fenway

    MySQL Error

    No one knows what that means.
  18. Sorry, I don't follow.
  19. You really need to convert that to a multi-table join.
  20. You'd have to show us these characters, tell us about your database collations and character sets, and tell us what you mean by "break or not workign".
  21. No problem -- we'll wait.
  22. Like I suggested a long time ago: select Y.terminal, count(Z.id) from (select distinct terminal from stats) Y left outer join stats Z on ( Y.terminal=Z.terminal and Z.timestamp > '2012-01-16' ) group by Y.terminal order by Y.terminal
  23. I'd suggest that you read the sticky on how to provide all of the necessary information.
  24. Those aren't french characters -- those are html entities.
  25. You are correct -- there is no benefit to having a single column index when you a multi-field index and the single column is the first in the mulit-column index.
×
×
  • 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.