1
0
Fork 0

updated sql query for filtering BASE records

This commit is contained in:
Michele Artini 2024-03-13 11:57:26 +01:00
parent d9b23a76c5
commit 7f7083f53e
1 changed files with 5 additions and 3 deletions

View File

@ -2,6 +2,8 @@ select s.id as id
from dsm_services s from dsm_services s
where collectedfrom = 'openaire____::opendoar' where collectedfrom = 'openaire____::opendoar'
and jurisdiction = 'Institutional' and jurisdiction = 'Institutional'
and s.id not in ( and s.id in (
select service from dsm_api where coalesce(compatibility_override, compatibility) like '%openaire%' or last_collection_total > 0 select service from dsm_api where coalesce(compatibility_override, compatibility) = 'driver' or coalesce(compatibility_override, compatibility) = 'UNKNOWN'
) and s.id not in (
select service from dsm_api where coalesce(compatibility_override, compatibility) like '%openaire%'
); );