Viewing 5 posts - 1 through 6 (of 6 total)
Yup, I was going to say that it was missing the GROUP BY clause as well.
Both solutions work, but I'm going with Luiz's as it's very simple, and since I...
June 12, 2013 at 3:53 pm
Thanks! Will watch this space.
July 4, 2012 at 2:20 am
It can be more than 2.
July 4, 2012 at 1:04 am
This doesn't quite work. In the event when the table has the following entries,
StudentIDFavoriteSubject
1Subject1
1Subject2
2Subject1
2Subject2
When I run the query, I should only get all details of StudentID 1, but I get...
July 3, 2012 at 11:22 pm
Thanks Mark-101232!
Works like a charm!
September 5, 2011 at 4:40 am
Viewing 5 posts - 1 through 6 (of 6 total)