Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

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

    UTF8

    UTF-8 is highly non-trivial to support -- if you don't need it, then avoid the headache.
  9. 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.
  10. Drop the straight_join -- otherwise, you've told mysql that you're smarter than it.
  11. Just delete the MYI file and repair the able.
  12. 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.
  13. If your table has more than 50, it's broken.
  14. I suppose so -- you can use a row counter, and roll-your-own average.
  15. And you're posting this thread twice because...?
  16. I feel like you've asked this question before.
  17. Getting closer -- so what output does that produce, and what's wrong about it?
  18. This really isn't the place for php syntax errors.
  19. fenway

    MySQL Error

    No one knows what that means.
  20. Sorry, I don't follow.
  21. You really need to convert that to a multi-table join.
  22. 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".
  23. No problem -- we'll wait.
  24. 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
  25. I'd suggest that you read the sticky on how to provide all of the necessary information.
×
×
  • 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.