radiopass

This commit is contained in:
mynah
2020-05-27 15:28:41 -05:00
parent 8cede80fe7
commit 45efdf7934
8 changed files with 73 additions and 7 deletions

View File

@@ -2,7 +2,14 @@
select
date_format(t.fecha_inicio,'%Y%m') as bid,
t.id as eeid,
concat(l.municipio,", ",l.federativa) as ciudad,
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,
concat(l.nombre,". ") as lugar,
l.direccion as dir,
day(t.fecha_inicio) as dini,