List:Spanish« Previous MessageNext Message »
From:Marcos Besteiro López Date:July 18 2009 4:34pm
Subject:Re: Rand por fecha
View as plain text  
Mi propuesta:
SELECT table.* FROM table
RIGHT JOIN (SELECT id FROM table ORDER BY date DESC LIMIT 20) helper_table
ON table.id=helper_table.id
ORDER BY RAND()
0.0004 segundos en una tabla con 396805 registros
MarcosBL
http://www.propiedadprivada.com/

Thread
Rand por fechaEmiliano Horcada16 Jul
  • Re: Rand por fecha16 minutos16 Jul
    • Re: Rand por fechaEmiliano Horcada16 Jul
      • Re: Rand por fechaGN16 Jul
        • Re: Rand por fechaEmiliano Horcada16 Jul
          • Re: Rand por fechaAnarkae16 Jul
            • Re: Rand por fechaEmiliano Horcada16 Jul
              • RE: Rand por fechaMaria Eugenia Ruiz Estopier16 Jul
        • RE: Rand por fechaThomas Goik - auxion.de18 Jul
    • Re: Rand por fechaMarcos Besteiro López18 Jul
  • Re: Rand por fechaCalabaza16 Jul
    • Re: Rand por fechaAnarkae16 Jul
      • RE: Rand por fechaMaria Eugenia Ruiz Estopier16 Jul
        • Re: Rand por fechaEmiliano Horcada16 Jul
          • Re: Rand por fechaCalabaza16 Jul
            • Re: Rand por fechaEmiliano Horcada17 Jul
              • Re: Rand por fechaCalabaza17 Jul
                • Re: Rand por fechaEmiliano Horcada17 Jul
                • Re: Rand por fechaFernando del Fresno García18 Jul