ForceChallenges
ProblemsDailyNotes
Sign in
Problem list
Sign in to submit

Big Deals Closing This Quarter

MediumSOQL 25 ptsCreated Oct 2, 2026

Forecast review! Return the Name, Amount and CloseDate of every open Opportunity (IsClosed = false) with an Amount of at least 50,000 that closes this quarter.

Order by CloseDate ascending, then Name ascending.

The sandbox org's date is fixed at 2026-06-15 so date literals are deterministic. Use SOQL date literals rather than hard-coded dates.

Constraints

  • Use the THIS_QUARTER date literal.
  • Row order is checked.
Date literalsORDER BY
CodeSOQL
Loading editor…
+1 hidden on submit
80 opportunities around the quarter

Seed data

Opportunity× 80 rows
Name: Opp {{i}}Amount: {{(i%10)*12500}}IsClosed: {{bool:i%3/2}}CloseDate: {{date:i*2-80}}StageName: {{pick:Prospecting|Negotiation/Review|Closed Won}}

Expected

18 row(s), order checked

#NameAmountCloseDate
1Opp 4500002026-04-04
2Opp 6750002026-04-08
3Opp 7875002026-04-10
4Opp 91125002026-04-14
5Opp 15625002026-04-26
6Opp 16750002026-04-28
7Opp 181000002026-05-02
8Opp 191125002026-05-04
9Opp 24500002026-05-14
10Opp 25625002026-05-16
11Opp 27875002026-05-20
12Opp 281000002026-05-22
13Opp 34500002026-06-03
14Opp 36750002026-06-07
15Opp 37875002026-06-09
16Opp 391125002026-06-13
17Opp 45625002026-06-25
18Opp 46750002026-06-27