# conflict_groups_view

0 rows

### Columns

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

idgroup

text

2147483647

√

null

id_1

text

2147483647

√

null

name_1

text

2147483647

√

null

type_1

text

2147483647

√

null

city_1

text

2147483647

√

null

country_1

text

2147483647

√

null

id_2

text

2147483647

√

null

name_2

text

2147483647

√

null

type_2

text

2147483647

√

null

city_2

text

2147483647

√

null

country_2

text

2147483647

√

null

### View Definition

SELECT c.idgroup, o1.id AS id_1, o1.name AS name_1, o1.type AS type_1, o1.city AS city_1, o1.country AS country_1, o2.id AS id_2, o2.name AS name_2, o2.type AS type_2, o2.city AS city_2, o2.country AS country_2 FROM ((oa_conflicts c LEFT JOIN organizations o1 ON ((c.id1 = o1.id))) LEFT JOIN organizations o2 ON ((c.id2 = o2.id))) WHERE ((o1.id IS NOT NULL) AND (o2.id IS NOT NULL) AND (o1.status = 'approved'::text) AND (o2.status = 'approved'::text) AND (c.idgroup IS NOT NULL) AND (c.reltype = 'suggested'::text));

### Possibly Referenced Tables/Views

- oa_conflicts
- organizations