Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. There's a sticky on this topic.
  2. No need to upload files -- just post the relevant code snippet in code tags.
  3. And this won't work anyway -- you need INTERVAL for math.
  4. Should be pretty fast, since they're all constant expressions.
  5. First problem -- no join condition. Second problem -- what's being stored in the "theme" column?? I'm confused.
  6. Why are you using backticks?
  7. Well, how else are you going to identify which users we're talking about?
  8. Pretty close.. of course, you'll want back to ReferredBy column itself, and LIMIT 10.
  9. why not simply group by referred_by, and order by the count desc, limit 20?
  10. It's your hyphen -- use backticks.
  11. Then jobs.date isn't a DATE field.
  12. See here.
  13. Then dump $resource and see what it really is... those extra parens don't help.
  14. And I assume the refman wasn't helpful?
  15. You mean to say that the second query alone doesn't produce 14 records? If it does, you need a join, not a union. I'm confused, yet again.
  16. This is a moot point -- it's really not going to happen -- and the more posts you have, the less valuable it is to the rest of the members to have anyone's username changed.
  17. Probably not in this case, assuming proper indexes.
  18. Then your import is busted.
  19. What are you trying to do?
  20. Start thinking in sets, not procedures.
  21. Not what I meant, but that works too.
×
×
  • 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.