select name, grade from studentTable join grades where studentTable.id = grades.id and grade = 'A';