select distinct	af.num_manzana AS manzana,
					af.num_predial AS predio,
					CONCAT(af.num_manzana, '-', af.num_predial) as rol,
					af.descripcion_comuna,
					af.direccion_predio,
					af.avaluo_fiscal,
					af.avaluo_exento,
					af.id_comuna,
					(af.avaluo_fiscal - af.avaluo_exento) as avaluo_total,
					af.contribucion_semestral,
					af.superficie_total,
					af.id_comuna_rol1,
					af.num_manzana_rol1,
					af.num_predial_rol1,
					rr.nombre_propietario,
					rr.anio_termino_exencion,
					case when rr.codigo_ubicacion = 'R' then 'Rural' else 'Urbano' end as codigo_ubicacion,
					coalesce(cd.descripcion_destino, af.descripcion_destino) as descripcion_destino
					 from (select num_manzana, num_predial, direccion_predio, avaluo_fiscal, avaluo_exento, contribucion_semestral, descripcion_comuna, rr.id_comuna, rr.superficie_total, rr.id_comuna_rol1, rr.num_manzana_rol1, rr.num_predial_rol1, cd.descripcion_destino  from roles_no_agricolas rr inner join codigos_comunas co on rr.id_comuna = co.id_comuna  left join codigos_destinos cd on rr.id_destino = cd.id_destino  where 1 = 1   and rr.id_comuna = '8407'  and replace(replace(rr.direccion_predio, '-', ' '), '/', '') like '%PANTOJA 1294%' and rr.num_manzana = '329' and rr.num_predial = '51'  union select num_manzana, num_predial, direccion_predio, avaluo_fiscal, avaluo_exento, contribucion_semestral, descripcion_comuna, rr.id_comuna, 0 as superficie_total, 0 as id_comuna_rol1, 0 as num_manzana_rol1, 0 as num_predial_rol1, cd.descripcion_destino  from roles_agricolas rr inner join codigos_comunas co on rr.id_comuna = co.id_comuna  left join codigos_destinos cd on rr.id_destino = cd.id_destino  where 1 = 1   and rr.id_comuna = '8407'  and replace(replace(rr.direccion_predio, '-', ' '), '/', '') like '%PANTOJA 1294%' and rr.num_manzana = '329' and rr.num_predial = '51'  union 
		select num_manzana, num_predial, direccion_predial, avaluo_exento as avaluo_fiscal, avaluo_exento, '' as contribucion_semestral, descripcion_comuna, rr.id_comuna, 0 as superficie_total, 0 as id_comuna_rol1, 0 as num_manzana_rol1, 0 as num_predial_rol1, cd.descripcion_destino  
                         from roles_propietarios rr 
                         inner join codigos_comunas co on rr.id_comuna = co.id_comuna  
                         left join codigos_destinos cd on rr.id_destino = cd.id_destino  
		 where 1 = 1   and rr.id_comuna = '8407'  and replace(replace(rr.direccion_predio, '-', ' '), '/', '') like '%PANTOJA 1294%' and rr.num_manzana = '329' and rr.num_predial = '51' ) af  left join codigos_destinos cd on rr.id_destino = cd.id_destino 
Avaluos.cl

Consulta la superficie, año, material, calidad y destino

SIN INFORMACION

Últimas 20 consultas:

Gral Mitre 758 - Valparaiso Las Golondrinas 1731 Bx 79 - Vina Del Mar I Riquelme 756 - Rancagua Lote 6 Resto Extension A - Machali Lt B 7 Pc 21 El Culenar - Sagrada Familia Los Copihues 527 - Angol La Aguada St 42 - Corral Lenca Lt B - Puerto Montt Fundo La Cumbre - Llanquihue Pj Yendegaia 6915 Dp 302 - Lo Prado Jorge Washington 450 Bd 37 - Nunoa Jose Dgo Canas 1727 Dp 53 - Nunoa Pj E Escala 530 Dp 12 - Las Condes Av Manquehue Sur 1214 Bx 20 - Las Condes Pje Cesar Guzman 10658 - La Florida Mayor Abe 3067 Dp 309 - Macul T Matta 1165 - San Miguel Pj Alciras 6338 - La Granja Uruguay 1416 - San Ramon Leonora Latorre 0476 - San Bernardo