You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Select query to return top 3 private lessons depending on count of payments
SELECT offers.*, COUNT(payments.id) AS cnt FROM payments JOIN offers ON offers.id = payments.offersid GROUP BY payments.offersid ORDER BY cnt DESC LIMIT 3