Useful SQL Examples
Some SQL Examples that might help you calculate that one value.
Calculating a cumulative Value
SELECT
t1.date,
(
SELECT
SUM(new_subscriptions)
FROM
daily_subscriber_change t2 where t1.date >= t2.date
) active_subscribers
FROM daily_subscriber_change t1
WHERE
date >= "$start_date"
AND
date <= "$end_date"Rounding Values for displaying
Last updated
Was this helpful?