| 101 | |
| 102 | The number of REFERENCEs without attributes but with relations grouped by date. |
| 103 | {{{ |
| 104 | select count(*), from_unixtime(modification_time/1000, '%Y-%m-%d') |
| 105 | from node e |
| 106 | where |
| 107 | e.object_class = 'REFERENCE' |
| 108 | and system_status = 'CURRENT_VERSION' |
| 109 | and e.id not in ( |
| 110 | select source_id from node |
| 111 | where node_type = 'ATTRIBUTE' |
| 112 | ) |
| 113 | and e.id in ( |
| 114 | select source_id from node |
| 115 | where node_type = 'RELATION' |
| 116 | ) |
| 117 | group by from_unixtime(modification_time/1000, '%Y-%m-%d') |
| 118 | order by 2 |
| 119 | }}} |