About this study
“SQL for Marketers” is a free, 4-lesson study on sql for marketers at novice level, created with soclever, a personal AI teacher. Each lesson takes a few minutes and ends with a check-in question; finish the curriculum and you can take a certificate test to earn a diploma. Starting is free and needs no account — or generate your own study on any topic.
What you'll learn
- Select & Filter Campaign Data. Your marketing team has a table called campaigns with columns: campaignname, budget, startdate, and status. You need to pull Q4 data—October through December—for a board review.…
- Join Channels to Revenue. A JOIN in SQL combines rows from two tables when they share a matching value—it's how you connect "which ad channel brought in this customer" to "how much revenue did that…
- Segment Cohorts & Aggregate. You have a users table with signupmonth, channel, and converted (1 or 0). Your boss wants to know: which signup month and channel combo had the most conversions? One row per user…
- Build Attribution Windows. You have a touches table with customerid, touchpoint (email, ad, referral), and touchdate. You have an orders table with customerid, orderdate, and isrepeat. The question: which…
Questions this study answers
- Write the WHERE clause that would filter the campaigns table to show only rows where budget is greater than 5000.
- If your marketing table has the channel each customer came from and your revenue table has the total purchase amount per customer, what does the JOIN do?
- If you GROUP BY signup_month and channel, then use SUM(converted), what does each row in your result represent?
- If a customer had an email, then an ad, then a repeat purchase, how many times does that customer contribute to the counts in your aggregation—once, twice, or once per touchpoint type?
More studies to explore
- claude code loops — 6 lessons on claude code loops (novice).
- Iranian negotiation strategy in the context of us Iran war — 12 lessons on Iranian negotiation strategy in the context of us Iran war (intermediate).
- Parashat Korach — 5 lessons on Parashat Korach (novice).
- How to manage a kitchen for a boutique niche event space when it’s my first gig — 4 lessons on How to manage a kitchen for a boutique niche event space when it’s my first gig (advanced).
Or browse all public studies.