# duplicate_groups_view

0 rows

### Columns

Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments
--- | --- | --- | --- | --- | --- | --- | --- | ---

id

text

2147483647

√

null

name

text

2147483647

√

null

city

text

2147483647

√

null

country

text

2147483647

√

null

n_duplicates

int8

19

√

null

### View Definition

SELECT o.id, o.name, o.city, o.country, count(d.*) AS n_duplicates FROM (oa_duplicates d LEFT JOIN organizations o ON ((o.id = d.local_id))) WHERE ((d.reltype = 'suggested'::text) AND (o.status = 'approved'::text)) GROUP BY o.id, o.name, o.city, o.country ORDER BY o.name;

### Possibly Referenced Tables/Views

- oa_duplicates
- organizations