Files
dojo/lib/Dojo/Model/Data/event/qEvent.q
2020-01-15 23:42:58 -06:00

27 lines
771 B
Plaintext
Executable File

select
curso.nombre as cname,
concat(lugar.municipio,', ',lugar.federativa) as place,
lugar.direccion as paddr,
lugar.observacion as pobs,
lugar.municipio as city,
tienda_evento.precio as cost,
tienda_evento.spay as spay,
case tienda_evento.promo_estado when 1 then coalesce(tienda_evento.promocion,"") else "" end as promo,
curso.temario as csubjects,
curso.servicios as cservices,
lugar.nombre as pname,
day(tienda_evento.fecha_inicio) as dini,
day(tienda_evento.fecha_fin) as dend,
month(tienda_evento.fecha_inicio) as mini,
month(tienda_evento.fecha_fin) as mend
from tienda_evento
inner join lugar on tienda_evento.lugar_id=lugar.id
inner join curso on tienda_evento.curso_id=curso.id
where tienda_evento.estado=1
and tienda_evento.id = ?
;