SQL practice / Microsoft
Free SQL interview practice

Microsoft SQL interview questions. All free.

4 SQL practice questions in our Microsoft collection, part of our 188-question bank across 23 companies. Write SQL against practice datasets and get checked in your browser. Free, no card or trial.

No account needed to start. Draft SQL stays in this browser; create an account to sync solved history.

1 Easy · 1 Easy–Medium · 1 Medium · 1 Hard

Independent practice resource. Not affiliated with or endorsed by Microsoft.

Inside the Microsoft set

SQL topics you can practice.

These topics come from the questions in this set. Pick one to open the matching problems.

Easy · 5 min

Teams DAU by Feature

Analyze Teams daily active users (DAU) by feature for the past week. For each day and feature (Chat, Calls, Meetings, Files), calculate the number of distinct users and average session duration in seconds. Return event_date, feature, dau_count, and avg_duration_seconds.

Tables: teams_events, users
Medium · 10 min

7-Day Rolling Feature Usage Adoption

Calculate the 7-day rolling average of daily active users for each Office 365 product. Return only products where daily_active_users is at least 100. Display event_date, product, daily_active_users, and rolling_7d_avg. Order by product and event_date.

Tables: office365_usage
Hard · 15 min

Bing Search Quality by Query Category

Analyze Bing search quality metrics by query category. For each category, calculate: total_queries, avg_click_rank, avg_dwell_time_seconds, click_through_rate, and percentage_no_click. Order by total_queries descending.

Tables: bing_queries, bing_clicks, bing_results
The bank

Microsoft SQL questions. Start typing SQL.

4 Microsoft problems, each with its own dataset. Click one and you’re in the workspace, free, right in your browser.

How it works

Solve in the browser. Checked instantly.

  1. 1
    Pick a problemPractice questions for data science and analytics interviews, each with its own tables, difficulty, and time target.
  2. 2
    Write and run SQLA full database engine loads in the tab. No setup, nothing to install — query the practice dataset immediately.
  3. 3
    Submit for a verdictPass and move to the next problem. Miss and you unlock the expected output and a reference solution.
Teams DAU by FeatureMicrosoft

Your dataset

teams_events

user_id (VARCHAR) · event_date (DATE) · feature (VARCHAR) · action (VARCHAR) · duration_seconds (INTEGER)

users

user_id (VARCHAR) · region (VARCHAR) · org_size (VARCHAR)

Try this Microsoft question
4
Microsoft questions
188
questions in the full bank
$0
free access

Solve one now. Build your solved history.

Start free, no account needed. When you create one, everything you’ve solved comes with you — solved marks, streaks, and concept ratings on your dashboard.

Practice Microsoft SQL free

Create a free account to sync solved history →