Files
dojo/lib/Dojo/Model/Data/cal/q3Event.q

28 lines
704 B
Plaintext
Raw Normal View History

2018-07-13 19:06:08 -05:00
select
2020-01-20 18:19:38 -06:00
date_format(t.fecha_inicio,'%Y%m') as bid,
t.id as eeid,
2020-07-10 21:22:01 +02:00
case
when l.municipio = '' or l.municipio is null
then l.federativa
when l.federativa = '' or l.federativa is null
then l.municipio
else
concat(l.municipio,", ",l.federativa)
end as ciudad,
2020-01-20 18:19:38 -06:00
concat(l.nombre,". ") as lugar,
l.direccion as dir,
day(t.fecha_inicio) as dini,
day(t.fecha_fin) as dfin,
month(t.fecha_inicio) as mini,
month(t.fecha_fin) as mfin,
c.nombre as nombre,
t.imagen_chica as imagen_chica
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.estore=1
order by t.fecha_inicio
2018-07-13 19:06:08 -05:00
;