Hello dear friends
I have a query in Oracle 11g, and i get this error :
SQL Error: ORA-00907: missing right parenthesis
SELECT F.CountryOfInterest, SUM(F.PopulationNum) as NeighborTotal from
(SELECT CB.CountryOfInterest, CB.BorderCountry, C.PopulationNum from
(SELECT Country1 as CountryOfInterest, Country2 as BorderCountry from Borders
UNION
SELECT Country2 as CountryOfInterest, Country1 as BorderCountry from Borders)
as CB,Country C where CB.BorderCountry = C.Name)
as F group by F.CountryOfInterest;
what is the problem?
thank you in advance.
best