------------------------------------------------------------ revno: 3069 committer: Lars Helge Overland <[email protected]> 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)
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : [email protected] Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp

