Search ⌘K
Salesforce
Salesforce

Foundations Track · Easy · 15 min

15 Easy Salesforce Average Deal Size Part 1

--Average Deal Size-- select round(avg(num_seats * yearly_seat_cost),2) as average_deal_size from contracts

Foundations Track
Easy
15 min
aggregation

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

Timer 00:00
Back to practice

Objective

Practice aggregation 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

--Average Deal Size-- select round(avg(num_seats * yearly_seat_cost),2) as average_deal_size from contracts

contracts
contract_id SERIAL PRIMARY KEY
account_name VARCHAR(100
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.