I'm trying to figure out how create a MySQL SELECT statement that will select users from one table, get the SUM of their payments in another table for each user, and set a conditional statement on that SUM. Something like this:
SELECT member_id
FROM users_table
WHERE SUM(payments) FROM payments_table > 100;
Any help would be greatly appreciated.