Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I have two CTE's: with screen as ( SELECT user _ pseudo _ id as user _ id , geo.country as country, event _ timestamp,
I have two CTE's:
with screen as
SELECT
userpseudoid as userid
geo.country as country,
eventtimestamp,
CASE
WHEN paramsvalue.stringvalue 'Duas' or paramsvalue.stringvalue 'DuasTopics' THEN 'Duas'
WHEN paramsvalue.stringvalue 'Explore' or paramsvalue.stringvalue 'Topic' THEN 'Explore by Topic'
ELSE paramsvalue.stringvalue
END AS screenname,
FROM
table AS base,
UNNESTeventparams AS params
WHERE
eventname 'screenview'
AND paramskey 'firebasescreen'
AND eventdate between and
remove AS
SELECT
distinct userpseudoid
FROM
table
where eventname'appremove'
AND eventdate between and
I want to find out the top countries where screenname 'settings' was the last screen viewed before app removal, along with the of associated users.
For example Malaysia has users who viewed 'settings' before removing the app.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started