How a SQL Query made us $2,838 in 15 minutes

"Technical marketing" is becoming redundant. How one simple SQL query plus a plain-text email won back 11 inactive Shopify stores and $2,838 in new revenue — in 15 minutes.
Author:  
Fomo
|
Published:  
October 1, 2026
|
4
 min read
Table Of Content
Share:

Increase conversions with live customer activity

Show who’s buying and what’s trending to boost sales
Try fomo for free now
5.0 on capterra
Read summarized version with

"technical marketing" is becoming redundant.

five years ago i got my first job in tech at ShuttleCloud, a Techstars alumni startup in NYC.

with little knowledge of marketing or technology, i furiously read Inbound by Hubspot founder, Dharmesh Shah, during my 1.5 hour flight from ATL to LGA.

since that first job, i've worked with over 40 venture-backed companies and started 3 myself. (fomo is by far the most successful)

along the way, i picked up a few skills:

  • HTML/CSS/JS
  • Wireframing
  • Scraping
  • Ruby/Rails
  • SQL

having already written at length about the benefits of scraping, today i'd like to highlight a positive outcome we achieved at fomo with SQL -- perhaps the simplest skill to learn from my list above.

in this post i'll share the good, the bad, and the encouragement to try this at your own company.

getting serious about our metrics

fomo has thousands of users, so we ought to know a few things about them.

namely:

  • which accounts are the most active
  • average revenue per user, and CLV
  • churn rate

to figure this out, we tried a lot of things: geckoboard, zapier, spreadsheets, and an admin product called forest.

none gave us the full picture of our revenue health, mostly because we have 5 income streams, all with unique price points and terms:

two weeks ago we finally settled on Baremetrics, which now has an open API, and couldn't be happier.

when i looked at our first [normalized] revenue dashboard, one thing in particular stood out -- our customer lifetime value (CLV):

fomo clv

immediately i wondered:

how many inactive customers do we have?

so i ran a SQL query.

fomo inactive customers sql query

here's what i wanted to see:

  • active shopify installs
  • where we have active API permissions
  • with at least 1 purchase in the last 2 months
  • but where the store didn't 'accept' our fees

this yielded 105 inactive customers on Shopify.

time: 6 minutes

crafting a pitch

next, i needed a brief email that would compel these shops -- who had already installed our app -- to merely accept our monthly recurring fee.

since fomo is a marketing product, the obvious thing to share is that we "increase sales," but every marketing app makes that claim.

i wanted to be more specific, incorporating actual lift metrics we achieve for real clients.

here's what i wrote:

fomo inactive customer notification email

as you can see, there are some << merge variables >> in there.

to personalize each message at scale, i used the YAMM plugin (free version) which sends 1 by 1 emails from a google spreadsheet.

time: 7 minutes

sending notifications

at this point, i have 105 shops to email and a brief but comprehensive message that reminds them:

  • who we are,
  • sales details only a privileged app could have,
  • specific instructions to take advantage of our offer.

while the paid version of YAMM is only $20 for ~1,000 daily emails, i wanted to field a couple responses and ensure i wasn't sending a bad message to the wrong people.

so, each day i sent 50 messages.

time: 2 minutes

results

fomo inactive shops

day 1

since i filtered the inactive shops by most -> least purchases, the first blast converted a whopping 18% of the stores i emailed.

and this makes sense -- these are stores who can easily afford our app, and may have simply forgotten to finish onboarding.

it's also the case in shopify, that only store owners can authorize charges, while team member accounts can install the apps.

=> activated customers: 9 shops

day 2

here i sent 50 more emails to the "bottom rung" of shops. these are stores with < 10 purchases in the last 2 months.

not surprisingly, our conversion rate was much lower: a mere 4%.

=> activated customers: 2 shops

day 3

there was no day 3. i had 5 shops left in the queue, but decided against it.

these shops had < 5 purchases in the last 60 days (jan 1 - mar 1, 2017), and i figured it wasn't worth back and forth conversations in the case they asked for a discount, etc.

in total, the 11 shops we activated from a SQL query + plain text email generated 11 * 258 CLV.

tl;dr

running simple queries and sending small batch emails are 2 things every startup marketer should feel comfortable doing.

for us, the results were very high:

==> $2,838 new revenue

at just 15 minutes to execute from start to finish, we can geek out further:

==> $189.20 value generated per minute

i encourage any company whose model incorporates a credit card during signup, to execute an occasional sweep through inactive customers.

at fomo, we're turning this into a monthly script that runs automatically.

room for improvement

after my first day of sending, i got a few confused replies:

fomo inactive customer email responses

this was a bummer, and likely avoidable if i beefed up my query.

in this case, the customer has multiple shops. one of their shops has fomo activated, and the other doesn't.

so while my claim was correct that shop XYZ was inactive, they might have assumed i was emailing them about shop ABC that is active.

lesson: include the specific business you're talking about -- otherwise, risk confusing serial entrepreneurs.

resources

to learn SQL in < 2 hours, i highly recommend this free course by SQL bolt. no signup required.

to learn how to send better emails, you might want to check out my cold email course (shameless plug).

want to see what specific, real-time proof does for your own store? Start your free Fomo trial.

No items found.
Email Icon - Techpool X Webflow Template
Subcribe to our weekly email newsletter
Thank you! Your submission has been received!
Oops! Something went wrong

Do you want to be the next success story?

Start a 14-day free trial
Choose more sales this Black Friday with Fomo
Get 33% off. Plus a 30 day Free Trial
This is your last chance
Start your free trial now !
#
Days
#
Hours
#
Minutes
#
Seconds
Send push notifications
Easy to install
Display social proof

Related posts

Browse all posts

How to Boost Ecommerce Sales with Social Proof (2026)

How social proof boosts ecommerce sales - the tactics, where to place each, and why verified proof is what actually lifts conversion.

September 9, 2026
9
 min read

Turn your website visitors into customers!

Don't settle for mediocrity! Experience the power of Fomo and witness a significant boost in trust and conversions on your website - just like 3500+ other businesses!

Try fomo for free now
No credit card required.

CTA

September 9, 2026
 min read

Turn your website visitors into customers!

Don't settle for mediocrity! Experience the power of Fomo and witness a significant boost in trust and conversions on your website - just like 3500+ other businesses!

Try fomo for free now
No credit card required.
Illustration of a sale page assembled from blocks in a browser window, with a star rating row, a delivery check and a small social proof notification

Black Friday Landing Page: 9 Elements That Earn Trust

What to put on a Black Friday landing page in 2026: 9 elements, proof next to the buy button, a copyable template and how to set Fomo up on the page.

October 14, 2026
6
 min read

Turn your website visitors into customers!

Don't settle for mediocrity! Experience the power of Fomo and witness a significant boost in trust and conversions on your website - just like 3500+ other businesses!

Try fomo for free now
No credit card required.
Check out our BFCM Offer. Save up to $1996 🎉
2 offers available
Monthly Plan
16.67% discount.
Save up to
$998.
No annual commitment. Pick the plan that best suits your needs and save up to $998 on your monthly subscription for the entire year.
Claim This offer
Annual Plan
33% discount.
Save up to
$1996.
Save big with the annual offer. Get an extended 30-day trial and save up to $1996 on your annual subscription.
Claim This offer
This is some text inside of a div block.

Show,Don't Tell.

Boost your sales and conversion with Social Proof

Try Fomo for free

*No credit card required