Search ⌘K
Salesforce
Salesforce

Foundations Track · Easy · 15 min

Partner Contracts Expiring Soon

Partnership ops wants a list of non-renewing contracts that are about to end. Using 2024-11-01 as the reference date, return partner_id, region, and end_date...

Foundations Track
Easy
15 min
query basics
filtering
date functions

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

Timer 00:00
Back to practice

Objective

Practice query basics through a Salesforce-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

Partnership ops wants a list of non-renewing contracts that are about to end. Using 2024-11-01 as the reference date, return partner_id, region, and end_date for contracts ending in the next 30 days where auto_renew is false. Sort by end_date, then partner_id.

partner_contracts
partner_id INT
region VARCHAR(20
partner_idregion
1NA2024-11-10false
2EMEA2024-11-25true
3APAC2024-12-01false
4NA2024-12-15false
5LATAM2024-11-03false
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.