Cześć, zacząłem podstawy SQL z SQLzoo i napotkałem mały problem. Nie rozumiem, dlaczego wynik w tym jest zwrócony dopiero po dodaniu linii: AND y.name != x.name. Dlaczego jest ona niezbędna? Czy ktoś mógłby mi to łopatologicznie wytłumaczyć? Zadanie wygląda w całości tak:
--#10
/*
Some countries have populations more than three times that of any of their neighbours (in the same continent). Give the countries and continents.
*/
SELECT name, continent
FROM
--#10
/*
Some countries have populations more than three times that of any of their neighbours (in the same continent). Give the countries and continents.
*/
SELECT name, continent
FROM
#sluchawki #iphone
@hpiotrekh: Po to kupuję słuchawki za 30 złotych, żeby się z nimi nie obchodzić jak z jajkiem :) Wyrwane kable, zalane, zgubione, raz nawet usiadłem na jednych, o! ( ಠ_ಠ)