Link Search Menu Expand Document

Accessing the custom database

As soon as you select a question that has a custom database attached. You can instantly write SQL queries against the data you have uploaded.

For example, lets say you upload a database that has a cities table, and a countries table.

  SELECT c.name, c.population,
    co.population as country_population
  FROM cities   AS c
  JOIN countries AS co ON c.country_id = co.id;