
19/05/2008, 13:00
|
Colaborador | | Fecha de Ingreso: marzo-2008 Ubicación: Cáceres
Mensajes: 3.735
Antigüedad: 17 años Puntos: 300 | |
Respuesta: Maximo valor de campo en varias tablas Si no te funciona eso, prueba esto. No lo he probado.
(SELECT max(num_order) as maximo from tbl_text where id_columna = 3 group by num_order )
union all
(SELECT max(num_order) from tbl_textbox where id_columna = 3 group by num_order )
union all
(SELECT max(num_order) from tbl_file where id_columna = 3 group by num_order )
union all
(SELECT max(num_order) from tbl_menu where id_columna = 3 group by num_order )
union all
(SELECT max(num_order) from tbl_radio where id_columna = 3 group by num_order )
union all
(SELECT max(num_order) from tbl_checkbox where id_columna = 3 group by num_order ) ORDER BY maximo desc limit 1 |