diff --git a/content/posts/2019-04.md b/content/posts/2019-04.md index d4eb7225a..f3705a122 100644 --- a/content/posts/2019-04.md +++ b/content/posts/2019-04.md @@ -991,7 +991,7 @@ dspace=# SELECT * FROM item WHERE item_id=74648; - Export a list of authors for Peter to look through: ``` -dspacetest=# # \copy (select distinct text_value, count(*) as count from metadatavalue where metadata_field_id = (select metadata_field_id from metadatafieldregistry where element = 'contributor' and qualifier = 'author') AND resource_type_id = 2 group by text_value order by count desc) to /tmp/2019-04-26-all-authors.csv with csv header; +dspace=# \copy (select distinct text_value, count(*) as count from metadatavalue where metadata_field_id = (select metadata_field_id from metadatafieldregistry where element = 'contributor' and qualifier = 'author') AND resource_type_id = 2 group by text_value order by count desc) to /tmp/2019-04-26-all-authors.csv with csv header; COPY 65752 ```