Search ⌘K
F
Facebook

Foundations Track · Easy · 15 min

Closed Account Ratio

Use this Facebook scorecard to work on closed account ratio. The account integrity team wants the share of accounts that were closed on 2020-01-10. Return on...

Foundations Track
Easy
15 min
aggregation
filtering

Company labels are directional practice context, not official interview guidance.

Timer 00:00
Back to practice

Objective

Practice aggregation through a Facebook-tagged business scenario.

Approach

Use this track to lock in clean query structure, basic filtering logic, and confidence with grouped output.

Company context

Company labels are directional practice context, not official interview guidance.

Prereq: query basics
Prereq: filtering

Use this Facebook scorecard to work on closed account ratio. The account integrity team wants the share of accounts that were closed on 2020-01-10. Return one column named closed_ratio with closed accounts divided by all account rows for that date.

fb_account_status
acc_id INT
date DATE
status VARCHAR(20
Editor
SQL workspace

Run queries against the protected question data, then submit once the result shape looks right.

Sign in to run SQL

Create a free account or sign in before running queries against protected question data.