I have a users table that has a column called money_sent. I want to order this table by money_sent in descending order, and then find
users
money_sent
How about:
SELECT count(*) FROM users WHERE money_sent < ( SELECT money_sent FROM users WHERE user = 'joe' );