Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Well, your table isn't normalized... but regardless, you'll have to determine which fields to search based on the criteria provided, and optimize accordingly.
  2. Agreed.
  3. As you've discovered, multi-valued inserts will only return the first auto-increment value -- that's for replication -- but if you need the actual IDs for each one, you'll have to run each separately.
  4. So you're questioning the 2NF?
  5. That's quick strange... even after ANALYZE?
  6. I'm assuming Monday is long gone -- though we do have a strict "homework" policy. However, if you still can't figure something out, feel free to ask.
  7. Huh? What's the mysql question here?
  8. fenway

    SQL Question

    Actually, that likely is the most efficient option, particuarly in earlier version of mysql.
  9. You can use instead.
  10. Those are backticks.
  11. You simply need to join these as derived tables.
  12. Can you give an example of what doesn't work?
  13. Well, you sort of have no choice -- you have to "check" if there has been another reply by someone else -- but you don't have to check it in real-time.
  14. There is no "fixed" number -- it depends on the distribution of the data. The refman has more details.
  15. Don't store phone number as integers.
  16. Whoa... where's the JOIN condition? And don't you want a COUNT()?
  17. What's wrong with null?
  18. That doesn't make any sense for a unique index.
  19. How do you mean?
  20. Show us some sample output without all that group by stuff.
  21. Does it not have something like that built-in? Otherwise, you simply need to issue a simply query and count the number of matching rows for a given team name -- if it's > 0, then you have a dupe.
  22. This is referring to the decllaration of an SP...
  23. I'm not sure I follow.
  24. MySQL doesn't have built-in functions for that.
×
×
  • 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.