fixed a bug counting datasources
This commit is contained in:
parent
92bd92f1b9
commit
13e9821940
|
@ -1,9 +1,7 @@
|
|||
select count(d.id) as count
|
||||
select count(DISTINCT d.id) as count
|
||||
from
|
||||
dsm_services d
|
||||
left outer join dsm_api a on (d.id = a.service)
|
||||
left outer join dsm_service_organization dso on (d.id = dso.service)
|
||||
left outer join dsm_organizations o on (o.id = dso.organization)
|
||||
where
|
||||
d.registrationdate >= cast(? as date)
|
||||
and d.registrationdate < a.last_collection_date
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
select count(d.id) as count
|
||||
select count(DISTINCT d.id) as count
|
||||
from
|
||||
dsm_services d
|
||||
left outer join dsm_api a on (d.id = a.service)
|
||||
left outer join dsm_service_organization dso on (d.id = dso.service)
|
||||
left outer join dsm_organizations o on (o.id = dso.organization)
|
||||
where
|
||||
d.registrationdate >= cast(? as date)
|
||||
and d._typology_to_remove_ like ?
|
||||
|
|
Loading…
Reference in New Issue