Practice · Tourism · Easy

Years we have revenue for

Return the year and revenue_usd_bn for every year where tourism revenue is recorded (not NULL), earliest first.

Runs in your browser. No signup needed.

What you are given

tourism(year, arrivals_millions, revenue_usd_bn). Some years have a NULL revenue.

Starting point

SELECT year, revenue_usd_bn
FROM tourism
WHERE revenue_usd_bn IS NOT NULL
ORDER BY 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

2021 revenue is deliberately blank — official sources genuinely disagree on the figure, so the KB records NULL rather than guessing. (Ministry of Tourism / CBE)

More Tourism challenges

Open it in the playground →