From 249efad58d49c4f10597cb8e658f4f9238ff78a8 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Thu, 10 Jul 2014 12:16:08 +0000 Subject: [PATCH] --- ferramentas/saiku/testemondrian.xml | 112 +++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------------- 1 file changed, 43 insertions(+), 69 deletions(-) diff --git a/ferramentas/saiku/testemondrian.xml b/ferramentas/saiku/testemondrian.xml index 7414ec3..1842720 100644 --- a/ferramentas/saiku/testemondrian.xml +++ b/ferramentas/saiku/testemondrian.xml @@ -111,14 +111,15 @@ SELECT - co_uf::text as codigo,co_uf::text as - co_uf - ,no_uf + co_uf::text as codigo, + co_uf::text as co_uf, + no_uf::text FROM i3geo_metaestat.uf + - @@ -127,18 +128,17 @@ - SELECT a0.co_municipio::text as codigo ,a0.co_municipio::text AS co_municipio , - a0.no_cidade::text AS no_cidade ,b0.co_uf::text AS co_uf ,b0.no_uf::text AS no_uf - FROM i3geo_metaestat.municipios as a0 JOIN i3geo_metaestat.uf as b0 ON + + SELECT a0.co_municipio::text as codigo ,a0.co_municipio::text AS co_municipio , + a0.no_cidade::text AS no_cidade ,b0.co_uf::text AS co_uf ,b0.no_uf::text AS no_uf + FROM i3geo_metaestat.municipios as a0 JOIN i3geo_metaestat.uf as b0 ON a0.co_uf::text = b0.co_uf::text -UNION +UNION SELECT a1.co_uf::text as codigo ,'','',a1.co_uf::text AS co_uf ,a1.no_uf::text AS no_uf FROM i3geo_metaestat.uf as a1 - -ORDER by codigo + uniqueMembers='true' /> @@ -257,8 +257,11 @@ ORDER by codigo - select *,ibge::text as codigodim,ano::text as ano_ from + + select tb_indicador.*,ibge::text as codigodim,uf.co_uf::text as co_uf, ano::text as ano_ from idsus.tb_indicador + JOIN i3geo_metaestat.municipios as municipio ON ibge::text = co_municipio::text + JOIN i3geo_metaestat.uf as uf ON municipio.co_uf::text = uf.co_uf::text + + - select *,ano::text as ano_ from - ibge.populacao_residente + + select a.*,a.co_municipio::text as codigo,uf.co_uf::text as co_uf, ano::text as ano_ + from + ibge.populacao_residente as a + JOIN i3geo_metaestat.municipios AS municipio ON municipio.co_municipio::text = a.co_municipio::text + JOIN i3geo_metaestat.uf as uf ON municipio.co_uf::text = uf.co_uf::text - - + + + @@ -351,14 +365,18 @@ ORDER by codigo public.sfb_teste - + + + + name='codigo_tipo_regiao_2' source='codigo_tipo_regiao_2' /> + + @@ -366,62 +384,17 @@ ORDER by codigo column='us1000' aggregator='sum' /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + @@ -464,6 +437,7 @@ ORDER by codigo + -- libgit2 0.21.2