Practice · Industry · Easy

The old guard

Return the name, sector and founded_year of companies founded before 1950, oldest first.

Runs in your browser. No signup needed.

What you are given

companies(name, sector, founded_year).

Starting point

SELECT name, sector, founded_year
FROM companies
WHERE founded_year < 1950
ORDER BY founded_year;

The reference solution is checked automatically when you run your query on the practice page — results are compared row by row, and order matters for this one.

Did you know

Telecom Egypt traces to 1854 and the National Bank of Egypt to 1898 — some of Egypt’s biggest listed firms are over a century old. (company filings / Wikipedia)

More Industry challenges

Open it in the playground →