I have those two tables:
users:

(I know jumps and style should be int and not varchar() but that's not what I'm trying to solve)
I have a query, which is supposed to return the following results within the resultset:
- name- retrieved using- JOINwith- auth
- time
- style
Here's my current query:
SELECT p.style, p.time, u.name FROM playertimes p JOIN users u ON p.auth = u.auth WHERE p.map = 'bhop_good' ORDER BY p.time ASC;
Here's the result I'm getting with the query above:

At this moment, the table can only contains two possible values of style which are 0 or 1. What I'm looking for, is to make style a DISTINCT, so in my case, I want to only get 2 results (one row per a value of style) for the query above, which should look like the following screenshot:
I'd like to receive help, thanks!


 
    