Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Probably the delimiter.
  2. Sorry, I don't follow.
  3. Forgetting about performance for a moment, a simple order by clause and some variables/counters should do the trick.
  4. Then you'll need to order by each part separately.
  5. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=313115.0
  6. You know, if you're going to post your question elsewhere, at least have the courtesy to post the solution when you find it.
  7. Why is it "wrong"?
  8. Might be a firewall/port issue.
  9. You mean just an expresion based on placement?
  10. You can always re-create just the MYI.
  11. With GROUP BY.
  12. That's purely a connection issue... probably temporary.
  13. well, you can translate the date into a daynumber(), and then modulus appropriately for group by.
  14. I don't follow -- you have the correct ordering already?
  15. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=312895.0
  16. Highest score from all games, or each game?
  17. No, not really -- you'd have to know the IDs, in the desired order, to replicate that.
  18. The server still has to run the statement anyway.
  19. You probably want to SUM(), with an inside IF().
  20. So, solved?
  21. What does that even mean?
  22. Ah, yes, I see what you're saying. That's always going to be true -- rand() can't possibly guess. You have a few options: 1) Just increase the number of rows you return randomly, if you can easily the "miss rate". This works well if you don't need "exactly" N rows back. 2) Do (1) iteratively, since maybe you will get back the right number sometimes -- can't imagine that a few extra passes wouldn't sort this out. 3) This may be very bad performance-wise, but if your "expired" query runs quickly, you can always use those UIDs directly -- but that's quite ugly.
  23. There isn't a single sql query is that block -- moving thread. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=312693.0
  24. Not really -- you obviously have the ingredient list already -- so what's the problem?
  25. You're using COUNT and SUM interchangeably.
×
×
  • 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.