We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
It's actually the WHERE clause that makes this query a join ("WHERE CITY.COUNTRYCODE = COUNTRY.CODE")- that does the pairing of every row in the first table to the corresponding row in the second table. The FROM clause alone would yield a Cartesian product rather than a join.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Population Census
You are viewing a single comment's thread. Return to all comments →
It's actually the WHERE clause that makes this query a join ("WHERE CITY.COUNTRYCODE = COUNTRY.CODE")- that does the pairing of every row in the first table to the corresponding row in the second table. The FROM clause alone would yield a Cartesian product rather than a join.