Skip to content
agershun edited this page Dec 28, 2014 · 9 revisions

SELECT JOIN

Join Types

Supported join types:

  • [INNER] JOIN
  • LEFT [OUTER] JOIN
  • RIGHT [OUTER] JOIN
  • [FULL] OUTER JOIN
  • ANTI JOIN
  • SEMI JOIN
  • CROSS JOIN
  • NATURAL JOIN
    alasql('SELECT * FROM Cities JOIN Countries');

JOIN USING

    alasql('SELECT city.*, country.* FROM city \
                JOIN country USING countryid');
    alasql('SELECT * FROM Cities JOIN Countries USING Country');

JOIN ON

    alasql('SELECT city.*, country.* FROM city \
                JOIN country ON city.countryid = country.countryid');
    alasql('SELECT * FROM Cities JOIN Countries ON Citites.Country = Countries.Country');
Clone this wiki locally