Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. You simply want to find all time ranges that include a portion of your range?
  2. When you say "efficiently", do you mean speed alone?
  3. Sorry, I don't follow.
  4. Remove the extra parents.
  5. Multiple databases are really annoying -- unless you're dealing with Big Data.
  6. Sounds like a quoting issue.
  7. What does "stopped working" mean?
  8. I don't need to see a DOC -- but your WHERE clause doesn't check for LOGOUT = 0.
  9. I don't understand why you just don't change the field -- you want it to be DVD and BLU-RAY?
  10. You wouldn't need to check if you were using a DB class that made it impossible.
  11. See here.
  12. That couldn't be more specific.
  13. Please don't do that -- don't troll multiple forum web-sites for answers -- otherwise, you're just wasting our time.
  14. At least get the slow_query_log.
  15. I mean, you say it works for up, not down. Give me an example of input & output for both cases, in English.
  16. I'm not good with tutorials -- maybe someone else has a suggestion. But that's the logic of pseudo-code.
  17. Try: select table1.USR_ID, table1.USR_PARENT, table1.USR_MONEY, table1.USR_FAMILY, balances.childSum FROM table1 LEFT JOIN ( select USR_FAMILY, sum( USR_MONEY) AS childSum from table1 where USR_PARENT = 0 group by USR_FAMILY ) AS balances USING ( USR_FAMILY ) Untested -- should be close.
  18. Are the letters that appear fixed?
  19. I recently stickied a good resource.
  20. That's a PHP error -- and usually it gives you a line number.
  21. I still don't see what UNIQUE and auto-increment have to do with one another.
  22. Interesting. Never knew you could put a conditional in the ORDER BY. Yup -- any expression -- that why ORDER BY FIELD() works. Incidentally, MySQL knows about zero dates -- you can just refer to them as '0' in your clauses -- much easier, and less error-prone.
  23. "a SUM of all sub-account balances for anyone who is a parent" Is that a simply SUM(), GROUP BY, where usr_parent = 0?
×
×
  • 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.