Skip to content

Instantly share code, notes, and snippets.

@MGCodesandStats
Last active July 8, 2022 14:29
Show Gist options
  • Save MGCodesandStats/ae329a1a22899090afc338b7298d83be to your computer and use it in GitHub Desktop.
Save MGCodesandStats/ae329a1a22899090afc338b7298d83be to your computer and use it in GitHub Desktop.
Average yearly customer metrics for NortonLifeLock. Figures sourced from historical quarterly financial reports and average figures by year calculated using SQL.
# Average figures by year
financials=# select year, cast(avg(direct_customer_count) as decimal(4,2)) as direct_customer_count, cast(avg(direct_average_revenue_per_user) as decimal(4,2)) as direct_average_revenue_per_user, cast(avg(direct_customer_revenues) as decimal(5,2)) as direct_customer_revenues from nortonlifelock group by year order by year;
year | direct_customer_count | direct_average_revenue_per_user | direct_customer_revenues
------+-----------------------+---------------------------------+--------------------------
2018 | 20.60 | 8.74 | 541.50
2019 | 20.17 | 8.85 | 551.33
2020 | 20.40 | 9.05 | 551.50
2021 | 22.76 | 8.89 | 604.00
2022 | 23.50 | 8.90 | 627.00
(5 rows)
# Original Data
financials=# select * from nortonlifelock order by year, period;
stock | year | period | direct_customer_count | direct_average_revenue_per_user | direct_customer_revenues
----------------+------+--------+-----------------------+---------------------------------+--------------------------
NortonLifeLock | 2018 | 9 | 20.70 | 8.72 | 543.00
NortonLifeLock | 2018 | 12 | 20.50 | 8.75 | 540.00
NortonLifeLock | 2019 | 3 | 20.30 | 8.83 | 541.00
NortonLifeLock | 2019 | 7 | 20.10 | 8.83 | 577.00
NortonLifeLock | 2019 | 10 | 20.10 | 8.88 | 536.00
NortonLifeLock | 2020 | 1 | 20.10 | 8.99 | 542.00
NortonLifeLock | 2020 | 4 | 20.20 | 9.07 | 549.00
NortonLifeLock | 2020 | 7 | 20.60 | 9.03 | 552.00
NortonLifeLock | 2020 | 10 | 20.70 | 9.10 | 563.00
NortonLifeLock | 2021 | 1 | 21.00 | 9.10 | 569.00
NortonLifeLock | 2021 | 4 | 23.00 | 8.80 | 602.00
NortonLifeLock | 2021 | 7 | 23.10 | 8.84 | 611.00
NortonLifeLock | 2021 | 10 | 23.30 | 8.85 | 616.00
NortonLifeLock | 2021 | 12 | 23.40 | 8.87 | 622.00
NortonLifeLock | 2022 | 4 | 23.50 | 8.90 | 627.00
(15 rows)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment