Figure 6

The same metric, in English and in SQL

Only the form changed. The example is simplified; the scores are measured across all metrics.

In English

Conference-influenced pipeline: for each account with someone who attended, the pipeline of deals that started on or after the event date. Count each account once.

40/61needs a join
40/42one table
74.8%overall
In SQL
SELECT account_id,
       MAX(pipeline) AS pipeline
FROM event_attendees
WHERE event = :event
  AND status = 'Attended'
  AND deal_start >= :event_date
GROUP BY account_id
50/61needs a join
40/42one table
84.1%overall
Both variants ran on the same day as the 83.2% configuration.