SELECT query from table without relationship


hello -

I need help figuring out an idea I want to do in my PHP web app. The picture attached explains my idea. Can you guys help me out?

the idea is to check if total points in the user table match any reward’s points on the rewards table. If they do, the add the reward name to user (Reward column).

Thanks in advance!!