Advertisement
theitd

WPW Active Subs

Feb 19th, 2018
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.20 KB | None | 0 0
  1. SELECT COUNT(sub.user_id) AS subscribers, plan.title
  2. FROM xiszt_payplans_subscription sub
  3. LEFT JOIN xiszt_payplans_plan plan ON plan.plan_id = sub.plan_id
  4. WHERE sub.STATUS = 1601
  5. GROUP BY sub.plan_id;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement