Ver Mensaje Individual
  #7 (permalink)  
Antiguo 19/05/2008, 11:18
jurena
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Cáceres
Mensajes: 3.735
Antigüedad: 16 años, 1 mes
Puntos: 300
Respuesta: Maximo valor de campo en varias tablas

Prueba así:
(SELECT num_order from tbl_text where id_columna = 3)
union all
(SELECT num_order from tbl_textbox where id_columna = 3)
union all
(SELECT num_order from tbl_file where id_columna = 3)
union all
(SELECT num_order from tbl_menu where id_columna = 3)
union all
(SELECT num_order from tbl_radio where id_columna = 3)
union all
(SELECT num_order from tbl_checkbox where id_columna = 3) ORDER BY num_order desc limit 1