skip to Main Content

Calculate monthly close conversion rate of total customer created in same month vs how many of them converted in sale – Postgresql

Table create script: CREATE TABLE data (account_id int, cust_status varchar(25), amount int, date date); INSERT INTO data VALUES ('1', 'first_login', '1000', '01/01/2021'), ('1', 'sale', '500', '28/01/2021'), ('2', 'first_login', '2000', '07/03/2021'), ('3', 'first_login', '1000', '01/06/2021'), ('3', 'sale', '2000', '05/08/2021'), ('4', 'first_login',…

VIEW QUESTION
Back To Top
Search