2020-01-15 23:42:58 -06:00
|
|
|
|
2018-07-13 19:06:08 -05:00
|
|
|
select
|
|
|
|
|
|
|
|
|
|
curso.nombre as cname,
|
|
|
|
|
concat(lugar.municipio,', ',lugar.federativa) as place,
|
|
|
|
|
|
|
|
|
|
lugar.direccion as paddr,
|
|
|
|
|
lugar.observacion as pobs,
|
|
|
|
|
lugar.municipio as city,
|
2020-01-15 23:42:58 -06:00
|
|
|
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,
|
2018-07-13 19:06:08 -05:00
|
|
|
curso.temario as csubjects,
|
|
|
|
|
curso.servicios as cservices,
|
|
|
|
|
lugar.nombre as pname,
|
2020-01-15 23:42:58 -06:00
|
|
|
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
|
2018-07-13 19:06:08 -05:00
|
|
|
|
2020-01-15 23:42:58 -06:00
|
|
|
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 = ?
|
|
|
|
|
;
|