Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/12/2007, 09:13
Avatar de m4xp0wer
m4xp0wer
 
Fecha de Ingreso: septiembre-2007
Mensajes: 66
Antigüedad: 16 años, 7 meses
Puntos: 1
Re: Ordenar por coincidencia (¿chorrada?)

prueba con algo así

select count(tablacuenta.keyword_id) as numclaves,tablaproducto.product_id from tabla as tablacuenta inner join tabla as tablaproducto on (tablacuenta.product_id = tablacuenta.product_id) group by tablacuenta.product_id order by numclaves

ya me contarás