done cleaning
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
|
||||
select
|
||||
date_format(tienda_evento.fecha_inicio,'%Y%m') as bid,
|
||||
tienda_evento.id as eeid,
|
||||
concat(lugar.municipio,", ",lugar.federativa) as ciudad,
|
||||
concat(lugar.nombre,". ") as lugar,
|
||||
lugar.direccion as dir,
|
||||
day(tienda_evento.fecha_inicio) as dini,
|
||||
day(tienda_evento.fecha_fin) as dfin,
|
||||
month(tienda_evento.fecha_inicio) as mini,
|
||||
month(tienda_evento.fecha_fin) as mfin,
|
||||
curso.nombre as nombre,
|
||||
tienda_evento.imagen_chica as imagen_chica
|
||||
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.estore=1
|
||||
order by tienda_evento.fecha_inicio
|
||||
date_format(t.fecha_inicio,'%Y%m') as bid,
|
||||
t.id as eeid,
|
||||
concat(l.municipio,", ",l.federativa) as ciudad,
|
||||
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
|
||||
;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user