Skip to content

By role

SQL interview questions for business and BI analysts

Business and BI analyst screens are about the numbers a business runs on: revenue, margins and shares, month over month and year over year, and reports where every category has to show up even when it is zero.

Start with a free oneFilter all 150

What to get right

  1. Cast before you divide. Integer division turns 2/3 into 0.
  2. Define the period exactly: calendar month, last 30 days, or month to date.
  3. Pivot with SUM(CASE WHEN ...) or FILTER, and know both.

Group and aggregate Read the lesson

Conditional aggregation Read the lesson

Period over period Read the lesson

Ratios and percentages Read the lesson

Dates and time Read the lesson

Joins Read the lesson

More for this role