edustreet
04-11-2007, 06:20 AM
Hi,
Table:
Name Subject Grade
Jason 1 A
Jason 2 A
Jason 3 A
Elvis 1 A
Elvis 2 A
Elvis 3 B
John 1 A
John 2 C
John 3 B
Output:
Name 1 2 3
Jason A A A
Elvis A A B
John A C B
Is that possible to get the result from the above? For what I want is the student who get more distinction subject will be at the top. It is not like this "select ... from ... order by 1,2,3"
Any suggestion and help will be more appreciate. Thanks
Calvin
Table:
Name Subject Grade
Jason 1 A
Jason 2 A
Jason 3 A
Elvis 1 A
Elvis 2 A
Elvis 3 B
John 1 A
John 2 C
John 3 B
Output:
Name 1 2 3
Jason A A A
Elvis A A B
John A C B
Is that possible to get the result from the above? For what I want is the student who get more distinction subject will be at the top. It is not like this "select ... from ... order by 1,2,3"
Any suggestion and help will be more appreciate. Thanks
Calvin