2020-01-15 23:42:58 -06:00
|
|
|
|
2018-07-13 19:06:08 -05:00
|
|
|
select
|
|
|
|
|
|
2020-01-20 18:19:38 -06:00
|
|
|
c.nombre as cname,
|
|
|
|
|
concat(l.municipio,', ',l.federativa) as place,
|
2018-07-13 19:06:08 -05:00
|
|
|
|
2020-01-20 18:19:38 -06:00
|
|
|
l.direccion as paddr,
|
|
|
|
|
l.observacion as pobs,
|
|
|
|
|
l.municipio as city,
|
|
|
|
|
t.precio as cost,
|
|
|
|
|
t.spay as spay,
|
|
|
|
|
case t.promo_estado when 1 then coalesce(t.promocion,"") else "" end as promo,
|
|
|
|
|
c.descripcion as cdescription,
|
|
|
|
|
c.temario as csubjects,
|
|
|
|
|
c.servicios as cservices,
|
|
|
|
|
l.nombre as pname,
|
|
|
|
|
day(t.fecha_inicio) as dini,
|
|
|
|
|
day(t.fecha_fin) as dend,
|
|
|
|
|
month(t.fecha_inicio) as mini,
|
|
|
|
|
month(t.fecha_fin) as mend
|
2018-07-13 19:06:08 -05:00
|
|
|
|
2020-01-20 18:19:38 -06:00
|
|
|
from curso_tienda as t
|
|
|
|
|
inner join curso_lugar as l on t.lugar_id=l.id
|
|
|
|
|
inner join curso as c on t.curso_id=c.id
|
|
|
|
|
where t.estado=1
|
|
|
|
|
and t.id = ?
|
2020-01-15 23:42:58 -06:00
|
|
|
;
|