![](https://community.sap.com/html/assets/img_tile-default.png)
select "CNTRY_NAME", "CONTINENT"
from "TESTSGEO"."cntry00" t
join "TESTSGEO"."continent" c on t.shape.ST_Intersects(c.shape) = 1
where "CNTRY_NAME" in
(select b.CNTRY_NAME
from "TESTSGEO"."continent" a
join "TESTSGEO"."cntry00" b on b.shape.ST_Intersects(a.shape) = 1
group by b.CNTRY_NAME, b.SHAPE
having count(*) > 1)
order by 1,2;
/* RESULT
;CNTRY_NAME ;CONTINENT
1 ;Azerbaijan ;Asia
2 ;Azerbaijan ;Europe
3 ;Bulgaria ;Asia
4 ;Bulgaria ;Europe
5 ;Chile ;Oceania
6 ;Chile ;South America
7 ;Colombia ;North America
8 ;Colombia ;South America
9 ;Egypt ;Africa
10;Egypt ;Asia
11;Gaza Strip ;Africa
12;Gaza Strip ;Asia
13;Georgia ;Asia
14;Georgia ;Europe
15;Greece ;Asia
16;Greece ;Europe
17;Israel ;Africa
18;Israel ;Asia
19;Kazakhstan ;Asia
20;Kazakhstan ;Europe
21;Panama ;North America
22;Panama ;South America
23;Papua New Guinea;Asia
24;Papua New Guinea;Oceania
25;Portugal ;Africa
26;Portugal ;Europe
27;Russia ;Asia
28;Russia ;Europe
29;South Africa ;Africa
30;South Africa ;Antarctica
31;Spain ;Africa
32;Spain ;Europe
33;Turkey ;Asia
34;Turkey ;Europe
35;United States ;North America
36;United States ;Oceania
*/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
21 | |
13 | |
12 | |
11 | |
11 | |
10 | |
10 | |
7 | |
7 | |
7 |