FAQ: Calculating Churn - What is Churn?

This community-built FAQ covers the “What is Churn?” exercise from the lesson “Calculating Churn”.

Paths and Courses
This exercise can be found in the following Codecademy content:

FAQs on the exercise What is Churn?

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

select 100./2000 ;

why dot is used after 100 in the churn project for calculating percentage

Moreover , i want to know whether we can do all type of calculation in this way?

3 Likes

The dot makes the decimals visible in the result.

SELECT 100./2000; – will give you 0.05 as a result

SELECT 100/2000; – without the dot the result is 0

You can calculate mathematical values using SELECT by using the common mathematical operators such as addition (+), subtraction (-), multiplication (*), division (/).

Unfortunately I’ve failed to find any official documentation about this at the SQLite website.

However you can try it from your sqlite command prompt.

Instructions on how to install SQLite:
https://www.codecademy.com/articles/what-is-sqlite

You can download Git here:
https://git-scm.com/downloads
And then you can run git-bash from the Start Menu, if you are using Windows.

3 Likes

This sounds like a basic question but I don’t get why my calc is wrong

SELECT 450. / (3000 + 500);

3000 base, plus 500 in the same period. Lost 450. The question is suggesting SELECT 450. / 3000;. What happened to the + 500?

5 Likes

Since we’re calculating April’s churn rate, any number of users added during April is not counted when calculating churn.

Only the one’s lost.

They’re trying to trick us :slight_smile:

3 Likes

churn