Skip to content

Commit

Permalink
string problem again
Browse files Browse the repository at this point in the history
  • Loading branch information
bstancil committed Dec 20, 2014
1 parent 89836c4 commit e921942
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion retention_playbook/metrics_that_matter_p2/postgres.sql
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ SELECT user_id,
SELECT u.user_id,
u.activated_at,
MAX(CASE WHEN e.occurred_at >= u.activated_at + INTERVAL '7 DAY' THEN 1 ELSE 0 END) AS retained,
MIN(CASE WHEN e.occurred_at >= u.activated_at + INTERVAL '7 DAY' THEN 'yes' ELSE 'no' END) AS retained_string,
COUNT(CASE WHEN e.event_name = 'home_page' THEN e.user_id ELSE NULL END) AS home_page_visits,
COUNT(CASE WHEN e.event_name = 'search_run' THEN e.user_id ELSE NULL END) AS searches,
COUNT(CASE WHEN e.event_name = 'send_message' THEN e.user_id ELSE NULL END) AS messages,
Expand Down

0 comments on commit e921942

Please sign in to comment.