Ver Mensaje Individual
  #12 (permalink)  
Antiguo 19/05/2008, 12:56
Avatar de the_web_saint
the_web_saint
 
Fecha de Ingreso: mayo-2008
Ubicación: localhost/tierra/america/panama
Mensajes: 1.229
Antigüedad: 16 años
Puntos: 43
Respuesta: Maximo valor de campo en varias tablas

Creo que aplicando el mismo order by desc limit 1 en cada unos de los select funcionaria verdad?:

Cita:
(SELECT num_order from tbl_text where id_columna = 6 ORDER BY num_order desc limit 1)
union all
(SELECT num_order from tbl_textbox where id_columna = 6 ORDER BY num_order desc limit 1)
union all
(SELECT num_order from tbl_file where id_columna = 6 ORDER BY num_order desc limit 1)
union all
(SELECT num_order from tbl_menu where id_columna = 6 ORDER BY num_order desc limit 1)
union all
(SELECT num_order from tbl_radio where id_columna = 6 ORDER BY num_order desc limit 1)
union all
(SELECT num_order from tbl_checkbox where id_columna = 6 ORDER BY num_order desc limit 1) ORDER BY num_order desc limit 1