{"pageProps":{"posts":[{"post_information":"{\"title\":\"Monitoring a Feature Launch with SQL\",\"date\":\"2020-07-30T00:00:00.000Z\",\"draft\":false,\"icon\":\"inspect\",\"author\":\"Bill Babeaux\"}","slug":"monitoring-a-feature-launch-with-sql","id":"product","position":0,"isDraft":false},{"post_information":"{\"title\":\"Auditing a Customer's Usage of Your Product\",\"date\":\"2020-07-30T00:00:00.000Z\",\"draft\":false,\"icon\":\"inspect\",\"author\":\"Bill Babeaux\"}","slug":"how-has-customer-used-your-product","id":"product","position":1,"isDraft":false},{"post_information":"{\"title\":\"Ranking the Most Used Features in Your Product\",\"date\":\"2020-07-30T00:00:00.000Z\",\"draft\":false,\"icon\":\"inspect\",\"author\":\"Bill Babeaux\"}","slug":"product-most-used-features","id":"product","position":2,"isDraft":false},{"post_information":"{\"title\":\"Finding Your Product's Most Engaged Users\",\"date\":\"2020-07-30T00:00:00.000Z\",\"draft\":false,\"icon\":\"inspect\",\"author\":\"Bill Babeaux\"}","slug":"finding-your-most-engaged-users","id":"product","position":3,"isDraft":false},{"post_information":"{\"title\":\"Filtering Users by Version Number with Regex in SQL\",\"date\":\"2020-07-30T00:00:00.000Z\",\"draft\":false,\"icon\":\"schema\",\"author\":\"Bill Babeaux\"}","slug":"filtering-users-by-version-number-with-sql-regex","id":"engineering","position":4,"isDraft":false},{"post_information":"{\"title\":\"Filtering Users by Platform in SQL\",\"date\":\"2020-07-30T00:00:00.000Z\",\"draft\":false,\"icon\":\"schema\",\"author\":\"Bill Babeaux\"}","slug":"filtering-users-by-platform-in-sql","id":"engineering","position":5,"isDraft":false},{"post_information":"{\"title\":\"Calculating Daily Active Users (and digging deeper)\",\"date\":\"2020-07-30T00:00:00.000Z\",\"draft\":false,\"icon\":\"announce\",\"author\":\"Bill Babeaux\"}","slug":"calculating-daily-active-users-in-sql","id":"marketing","position":6,"isDraft":false},{"post_information":"{\"title\":\"Analyzing NPS Responses in SQL\",\"date\":\"2020-07-30T00:00:00.000Z\",\"draft\":false,\"icon\":\"troubleshooting\",\"author\":\"Bill Babeaux\"}","slug":"analyzing-nps-responses-in-sql","id":"support","position":7,"isDraft":false},{"post_information":"{\"title\":\"Finding Customers at Risk of Churning\",\"date\":\"2020-07-30T00:00:00.000Z\",\"draft\":false,\"icon\":\"troubleshooting\",\"author\":\"Bill Babeaux\"}","slug":"finding-customers-at-risk-of-churning","id":"support","position":8,"isDraft":false},{"post_information":"{\"title\":\"Detecting Spikes in Issues from Support Tickets\",\"date\":\"2020-07-30T00:00:00.000Z\",\"draft\":false,\"icon\":\"troubleshooting\",\"author\":\"Bill Babeaux\"}","slug":"detecting-spikes-in-issues-from-support-tickets","id":"support","position":9,"isDraft":false},{"post_information":"{\"title\":\"Tagging Sign Up Emails as Work vs Personal\",\"date\":\"2020-07-30T00:00:00.000Z\",\"draft\":false,\"icon\":\"grow\",\"author\":\"Bill Babeaux\"}","slug":"tagging-sign-up-emails-as-work-vs-personal","id":"sales","position":10,"isDraft":false},{"post_information":"{\"title\":\"Creating Lead Scores in SQL\",\"date\":\"2020-07-30T00:00:00.000Z\",\"draft\":false,\"icon\":\"grow\",\"author\":\"Bill Babeaux\"}","slug":"creating-lead-scores-in-sql","id":"sales","position":11,"isDraft":false},{"post_information":"{\"title\":\"Running a Funnel Analysis in SQL\",\"date\":\"2020-07-30T00:00:00.000Z\",\"draft\":false,\"icon\":\"announce\",\"author\":\"Bill Babeaux\"}","slug":"running-a-funnel-analysis","id":"marketing","position":12,"isDraft":false},{"post_information":"{\"title\":\"Marketing Attribution in SQL\",\"date\":\"2020-07-30T00:00:00.000Z\",\"draft\":false,\"icon\":\"announce\",\"author\":\"Bill Babeaux\"}","slug":"marketing-attribution-in-sql","id":"marketing","position":13,"isDraft":false},{"post_information":"{\"title\":\"Creating Histograms in SQL\",\"date\":\"2020-07-30T00:00:00.000Z\",\"draft\":false,\"icon\":\"analyze\",\"author\":\"Bill Babeaux\"}","slug":"how-to-create-histograms-in-sql","id":"analytics","position":15,"isDraft":false},{"post_information":"{\"title\":\"Detecting Skewness in a Dataset in SQL\",\"date\":\"2020-07-30T00:00:00.000Z\",\"draft\":false,\"icon\":\"analyze\",\"author\":\"Bill Babeaux\"}","slug":"detecting-skewness-in-sql","id":"analytics","position":16,"isDraft":false},{"post_information":"{\"title\":\"Calculating Linear Regression in SQL\",\"date\":\"2020-07-30T00:00:00.000Z\",\"draft\":false,\"icon\":\"analyze\",\"author\":\"Bill Babeaux\"}","slug":"linear-regression-in-sql","id":"analytics","position":17,"isDraft":false},{"post_information":"{\"title\":\"Exploring our Sample Dataset\",\"date\":\"2020-07-30T00:00:00.000Z\",\"draft\":false,\"icon\":\"analyze\",\"author\":\"Bill Babeaux\"}","slug":"exploring-sample-dataset","id":"analytics","position":18,"isDraft":false}],"data":"{\"content\":\"![](/static/images/templates/covers/cover_work_vs_personal.png)\\n\\nSay you’re building a B2B product. A lead who signs up with a corporate email is more likely a qualified buyer.\\n\\nOf course, email type is not the only signal (see our template on [Lead Scoring](/sql-templates/sales/creating-lead-scores-in-sql)). Once you've baked all your signals into a Lead Score, you can even pull a daily report of [Recent Qualified Leads](/sql-templates/sales/creating-lead-scores-in-sql).\\n\\n## Why SQL?\\nSQL is fast and flexible. You can write a `CASE` statement in a snap, no data instrumentation or JIRA tickets required.\\n\\n\\n## SQL you can copy / paste\\nUse this query on any `users` table ( ⚠️ if your table is massive, filter by `created_at`).\\n\\n```sql\\nselect\\n id,\\n first_name,\\n last_name,\\n email,\\n case\\n when email similar to '%(gmail|yahoo|outlook|hotmail)%' then 'personal' --simplified list\\n else 'business'\\n end as email_type\\nfrom users;\\n```\\n**Sample Output:**\\n```\\n| id | first_name | last_name | email | email_type |\\n|--------|------------|-----------|----------------------|------------|\\n| 538107 | Aaliyah | Funk | aaliyah@craftery.com | business |\\n| 471400 | Abbey | Miller | abbey@weavel.com | business |\\n| 565108 | Cheyenne | Reilly | cheyenne@hotmail.com | personal |\\n| ... | ... | ... | ... | ... |\\n```\\n\\nObviously that list of email domains is simplified to make the concept easy. Here’s a full list of domain names that we consider personal (or burner).\\n\\nTo easily paste that list into your query, use delim.co, choose `|` as the delimiter, and then paste into your query like so:\\n![](/static/images/templates/personal_emails_to_delim_to_popsql.mp4)\\n\\n## Try it yourself?\\nRun this template against our [sample database](/sql-templates/analytics/exploring-sample-dataset) that mirrors real startup data. See the [connection credentials](/sql-templates/analytics/exploring-sample-dataset#accessing-this-database), then connect in PopSQL.\\n\",\"data\":{\"title\":\"Tagging Sign Up Emails as Work vs Personal\",\"date\":\"2020-07-30T00:00:00.000Z\",\"draft\":false,\"icon\":\"grow\",\"author\":\"Bill Babeaux\"},\"isEmpty\":false,\"excerpt\":\"\",\"orig\":{\"type\":\"Buffer\",\"data\":[45,45,45,10,116,105,116,108,101,58,32,34,84,97,103,103,105,110,103,32,83,105,103,110,32,85,112,32,69,109,97,105,108,115,32,97,115,32,87,111,114,107,32,118,115,32,80,101,114,115,111,110,97,108,34,10,100,97,116,101,58,32,50,48,50,48,45,48,55,45,51,48,84,48,48,58,48,48,58,48,48,45,48,48,58,48,48,10,100,114,97,102,116,58,32,102,97,108,115,101,10,105,99,111,110,58,32,34,103,114,111,119,34,10,97,117,116,104,111,114,58,32,34,66,105,108,108,32,66,97,98,101,97,117,120,34,10,45,45,45,10,33,91,93,40,47,115,116,97,116,105,99,47,105,109,97,103,101,115,47,116,101,109,112,108,97,116,101,115,47,99,111,118,101,114,115,47,99,111,118,101,114,95,119,111,114,107,95,118,115,95,112,101,114,115,111,110,97,108,46,112,110,103,41,10,10,83,97,121,32,121,111,117,226,128,153,114,101,32,98,117,105,108,100,105,110,103,32,97,32,66,50,66,32,112,114,111,100,117,99,116,46,32,65,32,108,101,97,100,32,119,104,111,32,115,105,103,110,115,32,117,112,32,119,105,116,104,32,97,32,99,111,114,112,111,114,97,116,101,32,101,109,97,105,108,32,105,115,32,109,111,114,101,32,108,105,107,101,108,121,32,97,32,113,117,97,108,105,102,105,101,100,32,98,117,121,101,114,46,10,10,79,102,32,99,111,117,114,115,101,44,32,101,109,97,105,108,32,116,121,112,101,32,105,115,32,110,111,116,32,116,104,101,32,111,110,108,121,32,115,105,103,110,97,108,32,40,115,101,101,32,111,117,114,32,116,101,109,112,108,97,116,101,32,111,110,32,91,76,101,97,100,32,83,99,111,114,105,110,103,93,40,47,115,113,108,45,116,101,109,112,108,97,116,101,115,47,115,97,108,101,115,47,99,114,101,97,116,105,110,103,45,108,101,97,100,45,115,99,111,114,101,115,45,105,110,45,115,113,108,41,41,46,32,79,110,99,101,32,121,111,117,39,118,101,32,98,97,107,101,100,32,97,108,108,32,121,111,117,114,32,115,105,103,110,97,108,115,32,105,110,116,111,32,97,32,76,101,97,100,32,83,99,111,114,101,44,32,121,111,117,32,99,97,110,32,101,118,101,110,32,112,117,108,108,32,97,32,100,97,105,108,121,32,114,101,112,111,114,116,32,111,102,32,91,82,101,99,101,110,116,32,81,117,97,108,105,102,105,101,100,32,76,101,97,100,115,93,40,47,115,113,108,45,116,101,109,112,108,97,116,101,115,47,115,97,108,101,115,47,99,114,101,97,116,105,110,103,45,108,101,97,100,45,115,99,111,114,101,115,45,105,110,45,115,113,108,41,46,10,10,35,35,32,87,104,121,32,83,81,76,63,10,83,81,76,32,105,115,32,102,97,115,116,32,97,110,100,32,102,108,101,120,105,98,108,101,46,32,89,111,117,32,99,97,110,32,119,114,105,116,101,32,97,32,96,67,65,83,69,96,32,115,116,97,116,101,109,101,110,116,32,105,110,32,97,32,115,110,97,112,44,32,110,111,32,100,97,116,97,32,105,110,115,116,114,117,109,101,110,116,97,116,105,111,110,32,111,114,32,74,73,82,65,32,116,105,99,107,101,116,115,32,114,101,113,117,105,114,101,100,46,10,10,10,35,35,32,83,81,76,32,121,111,117,32,99,97,110,32,99,111,112,121,32,47,32,112,97,115,116,101,10,85,115,101,32,116,104,105,115,32,113,117,101,114,121,32,111,110,32,97,110,121,32,96,117,115,101,114,115,96,32,116,97,98,108,101,32,40,32,226,154,160,239,184,143,32,32,105,102,32,121,111,117,114,32,116,97,98,108,101,32,105,115,32,109,97,115,115,105,118,101,44,32,102,105,108,116,101,114,32,98,121,32,96,99,114,101,97,116,101,100,95,97,116,96,41,46,10,10,96,96,96,115,113,108,10,115,101,108,101,99,116,10,32,105,100,44,10,32,102,105,114,115,116,95,110,97,109,101,44,10,32,108,97,115,116,95,110,97,109,101,44,10,32,101,109,97,105,108,44,10,32,99,97,115,101,10,32,32,32,119,104,101,110,32,101,109,97,105,108,32,115,105,109,105,108,97,114,32,116,111,32,39,37,40,103,109,97,105,108,124,121,97,104,111,111,124,111,117,116,108,111,111,107,124,104,111,116,109,97,105,108,41,37,39,32,116,104,101,110,32,39,112,101,114,115,111,110,97,108,39,32,45,45,115,105,109,112,108,105,102,105,101,100,32,108,105,115,116,10,32,32,32,101,108,115,101,32,39,98,117,115,105,110,101,115,115,39,10,32,101,110,100,32,97,115,32,101,109,97,105,108,95,116,121,112,101,10,102,114,111,109,32,117,115,101,114,115,59,10,96,96,96,10,42,42,83,97,109,112,108,101,32,79,117,116,112,117,116,58,42,42,10,96,96,96,10,124,32,105,100,32,32,32,32,32,124,32,102,105,114,115,116,95,110,97,109,101,32,124,32,108,97,115,116,95,110,97,109,101,32,124,32,101,109,97,105,108,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,124,32,101,109,97,105,108,95,116,121,112,101,32,124,10,124,45,45,45,45,45,45,45,45,124,45,45,45,45,45,45,45,45,45,45,45,45,124,45,45,45,45,45,45,45,45,45,45,45,124,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,124,45,45,45,45,45,45,45,45,45,45,45,45,124,10,124,32,53,51,56,49,48,55,32,124,32,65,97,108,105,121,97,104,32,32,32,32,124,32,70,117,110,107,32,32,32,32,32,32,124,32,97,97,108,105,121,97,104,64,99,114,97,102,116,101,114,121,46,99,111,109,32,124,32,98,117,115,105,110,101,115,115,32,32,32,124,10,124,32,52,55,49,52,48,48,32,124,32,65,98,98,101,121,32,32,32,32,32,32,124,32,77,105,108,108,101,114,32,32,32,32,124,32,97,98,98,101,121,64,119,101,97,118,101,108,46,99,111,109,32,32,32,32,32,124,32,98,117,115,105,110,101,115,115,32,32,32,124,10,124,32,53,54,53,49,48,56,32,124,32,67,104,101,121,101,110,110,101,32,32,32,124,32,82,101,105,108,108,121,32,32,32,32,124,32,99,104,101,121,101,110,110,101,64,104,111,116,109,97,105,108,46,99,111,109,32,124,32,112,101,114,115,111,110,97,108,32,32,32,124,10,124,32,46,46,46,32,32,32,32,124,32,46,46,46,32,32,32,32,32,32,32,32,124,32,46,46,46,32,32,32,32,32,32,32,124,32,46,46,46,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,124,32,46,46,46,32,32,32,32,32,32,32,32,124,10,96,96,96,10,10,79,98,118,105,111,117,115,108,121,32,116,104,97,116,32,108,105,115,116,32,111,102,32,101,109,97,105,108,32,100,111,109,97,105,110,115,32,105,115,32,115,105,109,112,108,105,102,105,101,100,32,116,111,32,109,97,107,101,32,116,104,101,32,99,111,110,99,101,112,116,32,101,97,115,121,46,32,72,101,114,101,226,128,153,115,32,97,32,60,97,32,104,114,101,102,61,34,104,116,116,112,115,58,47,47,103,105,115,116,46,103,105,116,104,117,98,46,99,111,109,47,116,98,114,105,97,110,106,111,110,101,115,47,53,57,57,50,56,53,54,47,34,32,116,97,114,103,101,116,61,34,95,98,108,97,110,107,34,62,102,117,108,108,32,108,105,115,116,32,111,102,32,100,111,109,97,105,110,32,110,97,109,101,115,60,47,97,62,32,116,104,97,116,32,119,101,32,99,111,110,115,105,100,101,114,32,112,101,114,115,111,110,97,108,32,40,111,114,32,98,117,114,110,101,114,41,46,10,10,84,111,32,101,97,115,105,108,121,32,112,97,115,116,101,32,116,104,97,116,32,108,105,115,116,32,105,110,116,111,32,121,111,117,114,32,113,117,101,114,121,44,32,117,115,101,32,60,97,32,104,114,101,102,61,34,104,116,116,112,115,58,47,47,100,101,108,105,109,46,99,111,47,34,32,116,97,114,103,101,116,61,34,95,98,108,97,110,107,34,62,100,101,108,105,109,46,99,111,60,47,97,62,44,32,99,104,111,111,115,101,32,96,124,96,32,97,115,32,116,104,101,32,100,101,108,105,109,105,116,101,114,44,32,97,110,100,32,116,104,101,110,32,112,97,115,116,101,32,105,110,116,111,32,121,111,117,114,32,113,117,101,114,121,32,108,105,107,101,32,115,111,58,10,33,91,93,40,47,115,116,97,116,105,99,47,105,109,97,103,101,115,47,116,101,109,112,108,97,116,101,115,47,112,101,114,115,111,110,97,108,95,101,109,97,105,108,115,95,116,111,95,100,101,108,105,109,95,116,111,95,112,111,112,115,113,108,46,109,112,52,41,10,10,35,35,32,84,114,121,32,105,116,32,121,111,117,114,115,101,108,102,63,10,82,117,110,32,116,104,105,115,32,116,101,109,112,108,97,116,101,32,97,103,97,105,110,115,116,32,111,117,114,194,160,91,115,97,109,112,108,101,32,100,97,116,97,98,97,115,101,93,40,47,115,113,108,45,116,101,109,112,108,97,116,101,115,47,97,110,97,108,121,116,105,99,115,47,101,120,112,108,111,114,105,110,103,45,115,97,109,112,108,101,45,100,97,116,97,115,101,116,41,32,116,104,97,116,32,109,105,114,114,111,114,115,32,114,101,97,108,32,115,116,97,114,116,117,112,32,100,97,116,97,46,32,83,101,101,32,116,104,101,32,91,99,111,110,110,101,99,116,105,111,110,32,99,114,101,100,101,110,116,105,97,108,115,93,40,47,115,113,108,45,116,101,109,112,108,97,116,101,115,47,97,110,97,108,121,116,105,99,115,47,101,120,112,108,111,114,105,110,103,45,115,97,109,112,108,101,45,100,97,116,97,115,101,116,35,97,99,99,101,115,115,105,110,103,45,116,104,105,115,45,100,97,116,97,98,97,115,101,41,44,32,116,104,101,110,32,99,111,110,110,101,99,116,32,105,110,32,80,111,112,83,81,76,46,10]},\"category\":\"sales\"}"},"__N_SSG":true}