------------------------------------------------------------
revno: 3091
committer: Lars Helge Overland <[email protected]>
branch nick: dhis2
timestamp: Sat 2011-03-19 23:37:57 +0100
message:
  Minor fix
modified:
  resources/sql/copydata.sql


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to 
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'resources/sql/copydata.sql'
--- resources/sql/copydata.sql	2011-03-18 12:55:58 +0000
+++ resources/sql/copydata.sql	2011-03-19 22:37:57 +0000
@@ -9,7 +9,7 @@
 where dataset.name='Population estimates' );
 
 insert into datavalue(dataelementid,periodid,sourceid,categoryoptioncomboid,value,storedby,lastupdated,comment,followup)
-select dataelementid,43668 as periodid,sourceid,categoryoptioncomboid,value,storedby,lastupdated,comment,followup
+select dataelementid,43668 as periodid,sourceid,categoryoptioncomboid,ceil(cast(value as double precision)*1.029) as value,storedby,lastupdated,comment,followup
 from datavalue
 where periodid=21011 and dataelementid in (
 select dataelementid from datasetmembers

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to