Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. You where clause will currently return pretty much all combinations of start/end... so why include it? For the "true" range, use BETWEEN.
  2. With no test data, not test output and no query... we're not going to get anyhere.
  3. IMHO, that's not even remotely required.
  4. Same place as before, go to the table screen by clicking on the table... you may want to look though some phpmyadmin tutorials.
  5. Maybe when you're testing, but never in production... Actually, that's most useful for assignment of @_.
  6. fenway

    IN problem

    You will have to rethink it... you aren't supposed to have a set number of fields, you're supposed to have another table that links players to teams to weeks.
  7. I'm not sure if you really mean "deleted"... maybe keep a count?
  8. Glad you got it working... after all, that's why we're all here.
  9. When you're getting back all of the records, don't add that to the where clause, it's not limiting your resultset.
  10. There are plenty of terrible ideas on this forum, and I'll continue to point them out... like storing "lists" in the single field, trying to change the auto_increment value, etc. Besides, terrible doesn't always mean bad per se... just extremely distressing. And more than that, I haven't seen any attempt to implement the plethora of solutions provided in the link I gave you.
  11. LIKE doesn't use an index, so it's expensive. And I was talking about the parents in the joins.
  12. Storing dates as anything but dates -- that's not my opinion, that's plain data corruption. Since obviously you don't feel like doing any research of your own, try this refman page.
  13. Wow, that's a terrible solution. Leave it as a day, convert it the current year, and then use between...
  14. You could also make a copy of this table and normalize it for the purposes of what you're trying to accomplish.
  15. Why is there a veh_group? The xfer table should link event_id to veh_id, nothing more.
  16. Did you read that discussion? It's rather in-depth, and has many solution.
  17. You can use FIND_IN_SET multiple times... or a SUBSTRING search with commas... it will be horribly slow.
  18. Birthdays are funny things... the mysql refman page on date/time functions actually has a rather lengthy discussion on this. Ultimately, you simply need to "swap out" the year with the current year.
  19. Maybe I've totally lost you... what is it that you want to calculate?
  20. How does everyone fall into this trap? Get the "writer of the db" to normalize the database.
  21. That's a lot more work for the server for no reason... and if you don't have matching records for table4, that order by is going to be useless... also, why the strange parentheses?
  22. fenway

    IN problem

    Why would you store a list in a single field... it's not a problem with the IN command, it's a problem with your table design. Normalize it, and you'll be fine.
×
×
  • 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.