Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. You're limiting yourself to just one level of nesting.
  2. The DECIMAL column type must be one of the options -- I've always used alter statements. As for linking them together, you'll need 3 tables -- colors, cars, and the relation table. Simply store a uid tuple in the latter.
  3. fenway

    Please Help!!

    No-one is going to download your code -- find the relevant section that pertains to your issue and post it in code blocks.
  4. Then get 8 random ones, union in the one you really want, and then throw out one of the original 8 if necessary.
  5. Change FROM tplss_seasons S, tplss_seasonnames SE to FROM (tplss_seasons S, tplss_seasonnames SE)
  6. Well, something has to run code on a schedule -- either mysql or the kernel, your choice.
  7. I find that hard to believe.
  8. That's not mysql.
  9. The "simplest" method is to keep a user-defined variable, which you reset per "group", and simply filter out the rows once you've hit your "limit" -- 2. Of course, by "simplest " I mean easiest to type, not most efficient. If you want the latter, you'll need to forgo examining each record, and use an derived table to get the N-most per group (and dealing with the edge case of there not being N rows), and then join that up the chain.
  10. I mean why can't you script just check -- why maintain a flag that's always out of date?
  11. That's blank, not null.
  12. I don't understand what you're trying to do.
  13. Then you'll need to get a 7-day unique version -- you can't just sum across the days.
  14. Why can't you just check?
  15. This has been covered many times on these forums -- a simple search should reveal the relevant threads.
  16. Sorry, I don't follow.
  17. 1. store proper DECIMAL fields, format on output only. 2. use a many-to-many relation table.
  18. That's not correct...
  19. No, not all the code -- just the relevant section.
  20. What's "it"?
  21. Why doesn't "tbl_Combat" have an index on TargetID.
  22. If you want the GROUP_CONCAT() expression to remove duplicates, use the DISTINCT modifier -- the refman covers the syntax.
  23. I'm always wary of sharing tables within a DB that have nothing to do with one another -- you can leave your CMS code alone, use the same table names, etc., but have a different DB from each customer.
  24. Sounds like you just want to dump these rows into a table with an auto-increment field.
×
×
  • 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.