Hola,
Necesito hacer esta consulta, pero no se coma hacerla con RoR
select * from photos where e_id = 1
Union all
select * from photos where parent_id in
(select id from photos where e_id = 1)
order by id
¿Se puede hacer?
Muchas gracias
Hola,
Necesito hacer esta consulta, pero no se coma hacerla con RoR
select * from photos where e_id = 1
Union all
select * from photos where parent_id in
(select id from photos where e_id = 1)
order by id
¿Se puede hacer?
Muchas gracias
Todo se puede hacer con : TuModelo.find_by_sql(tu_query)
Esa opción la conocÃa, pero pensaba q se podrÃa hacer de otra manera…
Muchas gracias
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs