Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. "For editing" is a php issue... does the mysql query pull the desired rows?
  2. No, not without a stored procedure...
  3. To do this properly, you need to generate a table on-the-fly of the desired date periods -- one per interval -- and then join & count as necessary.
  4. I have no idea what you're talking about -- try to explain this again.
  5. Why can't you just do this in mysql? Then it will be truly random.
  6. Do you get an error when using mysql_select_db()?
  7. Within Flash? You sure this is the correct board?
  8. Too many questions all at once... I'm leaning towards MyISAM, but define "huge amounts of text records".
  9. Sure, why not? Can you give an example?
  10. Why not just the mysql order by clause?
  11. You need to JOIN these two tables together... you can then use PHP to "indent" whenever the id changes.
  12. Why not just WHERE signup_date < CURDATE() - INTERVAL 30 DAY ?
  13. Maybe... is there only one "list" per field? If so, you can search for the "last" closing tag and the first opening tag rather easily.
  14. Bounce rate? What's that?
  15. You were close... but then you omitted the derived table and just tried to keep joining.
  16. OK, I suppose that's ok. Next step is to join all 3 table stogether.
  17. Now I don't know what you're doing... I don't see you using a derived table at all.
  18. I meant created the rows dynamically for any arbitrary date range whatsoever -- you've hard-coded the dates, I presume.
  19. You're skipping steps again.... in order for your query to be robust, you ALWAYS have to use a batch id... otherwise it doesn't make sense to select a non-group by'ed column, like price. Isn't the max batch id going to be different for each currency? And yes, once you have this table, you should be able to sum(c1*c2) in mysql with the above query as a derived table.
  20. I meant dynamically....
  21. Seriously?
  22. I think I remember you trying to optimize this query earlier?
  23. Well, to be sure it's not a caching issue, use "SELECT SQL_NO_CACHE .... FROM ....." What's the EXPLAIN like?
×
×
  • 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.