Ver Mensaje Individual
  #6 (permalink)  
Antiguo 08/07/2003, 10:32
totmerda
 
Fecha de Ingreso: septiembre-2002
Mensajes: 38
Antigüedad: 22 años, 8 meses
Puntos: 0
Hola a tod@s

Al final la sentencia sql me ha quedado tal como:


SQL= "SELECT B.* FROM PRODUCTOS AS A INNER JOIN PRODUCTOS AS B ON A.EQUIPO = B.FAMILIA AND A.ONLINE=B.ONLINE WHERE A.ONLINE=TRUE AND A.REF= '" + Request.Form.("Referencia") + " ' " + "ORDER BY (B.REF='" + Request.Form.("Referencia") + " '),b.ORDEN ASC "


Da como resultado exactamente lo que pretendia y me ha reducido el codigo fuente a la mitad.

Muchas gracias a tod@s

a10