← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 14197: Sql

 

------------------------------------------------------------
revno: 14197
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2014-03-12 17:49:52 +0100
message:
  Sql
modified:
  resources/sql/div.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/div.sql'
--- resources/sql/div.sql	2014-02-04 14:12:45 +0000
+++ resources/sql/div.sql	2014-03-12 16:49:52 +0000
@@ -163,6 +163,16 @@
 join _categoryoptioncomboname cn
 on (cc.categoryoptioncomboid=cn.categoryoptioncomboid);
 
+-- Display data out of reasonable time range
+
+select *
+from datavalue dv
+where dv.periodid in (
+  select pe.periodid
+  from period pe
+  where pe.startdate < '1950-01-01'
+  or pe.enddate > '2050-01-01');
+
 -- (Write) Populate dashboards for all users (7666 is userinfoid for target dashboard, replace with preferred id)
 
 insert into usersetting (userinfoid, name, value)