Report not found

There was a problem finding this report.
SQL LEFT JOIN Practice Problem 3
February 6, 2014 · Refreshed 7 days ago
Description
This report is the solution to a practice problem from Mode's SQL Tutorial lesson on using LEFT JOIN, which can be found here: https://community.modeanalytics.com/sql/tutorial/sql-left-join/

Collaborators

Run History
SELECT companies.state_code, COUNT(DISTINCT companies.permalink) AS unique_companies, COUNT(DISTINCT acquisitions.company_permalink) AS unique_companies_acquired FROM tutorial.crunchbase_companies companies LEFT JOIN tutorial.crunchbase_acquisitions acquisitions ON companies.permalink = acquisitions.company_permalink WHERE companies.state_code IS NOT NULL GROUP BY 1 ORDER BY 3 DESC
SELECT companies.state_code, COUNT(DISTINCT companies.permalink) AS unique_companies, COUNT(DISTINCT acquisitions.company_permalink) AS unique_companies_acquired FROM tutorial.crunchbase_companies companies LEFT JOIN tutorial.crunchbase_acquisitions acquisitions ON companies.permalink = acquisitions.company_permalink WHERE companies.state_code IS NOT NULL GROUP BY 1 ORDER BY 3 DESC
<div class="mode-header embed-hidden"> <h1>{{ title }}</h1> <p>{{ description }}</p> </div> <div class="container mode-grid"> <div class="row"> <div class="col-md-12"> <mode-table id="table_a5443e5dcf3f" dataset="dataset" options="table_options"></mode-table> </div> </div> </div>
{{ dataSourceName(params.queryId) }}

The dataset is too large to view in browser

Export

Looks like something went wrong with your query.

{{ DS.queryRuns[params.queryId].errorMessage }}
This query was cancelled