Changes between Version 5 and Version 6 of DatabaseCleanup


Ignore:
Timestamp:
Aug 3, 2016, 9:34:07 AM (8 years ago)
Author:
casties
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DatabaseCleanup

    v5 v6  
    7575order by rel.id;
    7676}}}
     77
     78The number of attributes without source_id (where a different version has a source_id) grouped by source object type.
     79{{{
     80select count(*), source_obj_class from openmind.node
     81where
     82node_type = 'ATTRIBUTE'
     83and
     84source_id is not null
     85and id in
     86(select distinct id from openmind.node
     87where source_id is null
     88and node_type = 'ATTRIBUTE')
     89group by source_obj_class
     90}}}