dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #11037
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3069: Minor fix
------------------------------------------------------------
revno: 3069
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2011-03-18 12:22:44 +0100
message:
Minor fix
modified:
resources/sql/integritychecks.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/integritychecks.sql'
--- resources/sql/integritychecks.sql 2011-01-21 16:22:50 +0000
+++ resources/sql/integritychecks.sql 2011-03-18 11:22:44 +0000
@@ -28,9 +28,10 @@
-- Get dataelements which are members of a section but not the section's dataset
-select de.name as dataelementname, sc.name as sectionname from sectiondataelements sd
+select de.name as dataelementname, sc.name as sectionname, ds.name as datasetname from sectiondataelements sd
join dataelement de on(sd.dataelementid=de.dataelementid)
join section sc on (sd.sectionid=sc.sectionid)
+join dataset ds on (sc.datasetid=ds.datasetid)
where sd.dataelementid not in (
select dm.dataelementid from datasetmembers dm
join dataset ds on(dm.datasetid=ds.datasetid)