
18/07/2011, 14:49
|
 | | | Fecha de Ingreso: diciembre-2003
Mensajes: 145
Antigüedad: 21 años, 2 meses Puntos: 7 | |
Respuesta: valor ....as "algo" , QUEDO ASI!!!!
Muchas gracias....
te debo 1!!
select
week(`tbl_1372_riego_control`.`fechahora`,0) AS `semana`,
`tbl_1070_predios`.`nombre` AS `nombre_predio`,
`tbl_1110_cuestionarios`.`pregunta` AS `pregunta`,
`tbl_1373_cuestionario_control`.`respuesta` AS `respuesta`,
`tbl_1372_riego_control`.`id` AS `muestra`,
`tbl_1372_riego_control`.`fechahora` AS `fechahora`,
case tipo when tipo ='1' then 'Riego' else 'Drenaje' end as `lugar2`
from (((`tbl_1372_riego_control`
join `tbl_1373_cuestionario_control`)
join `tbl_1110_cuestionarios`)
join `tbl_1070_predios`)
where ((`tbl_1373_cuestionario_control`.`control_id` = `tbl_1372_riego_control`.`id`)
and (`tbl_1110_cuestionarios`.`id` = `tbl_1373_cuestionario_control`.`cuestionario_id`)
and (`tbl_1372_riego_control`.`predio_id` = `tbl_1070_predios`.`id`))
order by `tbl_1372_riego_control`.`fechahora` desc
__________________ Pero si alguno de vosotros se ve falto de sabiduría, que la pida a Dios, el cual da a todos abundantemente y sin reproche, y le será dada. Pero que pida con fe, sin dudar
Santiago 1.5-6 |