← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5810: Script

 

------------------------------------------------------------
revno: 5810
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2012-01-26 19:36:12 +0100
message:
  Script
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	2011-11-25 18:01:49 +0000
+++ resources/sql/div.sql	2012-01-26 18:36:12 +0000
@@ -39,3 +39,9 @@
 from dataelement
 group by code
 order by count desc;
+
+-- Exploded category option combo view
+
+select cc.categorycomboid, cc.name as categorycomboname, cn.* from _categoryoptioncomboname cn
+join categorycombos_optioncombos co using(categoryoptioncomboid)
+join categorycombo cc using(categorycomboid);