SELECT DISTINCT a.name FROM test AS a JOIN test AS b ON a.name = b.name AND a.date > b.date AND a.score < b.score SQL Fiddle