# organizations_info_view

0 rows

### Columns

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

id

text

2147483647

√

null

name

text

2147483647

√

null

created_by

text

2147483647

√

null

creation_date

timestamptz

35,6

√

null

modified_by

text

2147483647

√

null

modification_date

timestamptz

35,6

√

null

n_duplicates

int8

19

√

null

n_conflicts

int8

19

√

null

note

bool

1

√

null

### View Definition

SELECT org.id, org.name, org.created_by, org.creation_date, org.modified_by, org.modification_date, count(DISTINCT d.oa_original_id) AS n_duplicates, count(DISTINCT c.id2) AS n_conflicts, (count(DISTINCT n.note) > 0) AS note FROM (((organizations org LEFT JOIN oa_duplicates d ON (((org.id = d.local_id) AND (d.reltype = 'suggested'::text)))) LEFT JOIN oa_conflicts c ON (((org.id = c.id1) AND (c.reltype = 'suggested'::text)))) LEFT JOIN notes n ON ((org.id = n.id))) GROUP BY org.id;

### Possibly Referenced Tables/Views

- organizations
- oa_duplicates
- oa_conflicts
- notes