MySQL Forums
Forum List  »  MySQL Query Browser

Cannot figure out a simple select query
Posted by: Tarun S
Date: May 19, 2015 11:07AM

For the below table I want to write a select query that returns the names of people who have a grade 'A' in subject 1 and 2. Is it possible?

Name Subject Grade
Susan 1 A
Alex 1 A
Mita 1 A
Sam 1 A
Susan 2 B
Alex 2 A
Mita 2 A
Sam 2 A
Susan 3 B
Alex 3 B
Mita 3 A
Sam 3 A
Susan 4 B
Alex 4 B
Mita 4 B
Sam 4 A

Options: ReplyQuote


Subject
Written By
Posted
Cannot figure out a simple select query
May 19, 2015 11:07AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.