 	--null as maksutieto_paattymis_pvm,
 	null as cum_sum,
 	null as tilastovuosi_oid,
-	sum(lukumaara) as "Vest",
+	sum(lukumaara) as vaesto,
 	--,null as vest_ik_vuosi
 	0 as tilastointi
 

			when va.ika between 3 and 5	then  2
			when va.ika = 6				then  3
			when va.ika > 6				then  4
	end

GO


		   else cast(tp.tilastovuosi as varchar) + '_' + tp.toimipaikka_oid 
		   end as tilastovuosi_oid,
	  
	  null as vaesto,
	  --,null as vest_ik_vuosi
	  case when DATEDIFF(year,henkilo_syntyma_pvm, cast(concat(vaka.tilastovuosi, '-12-31') as date)) > 10 then 0
	       else 1
