D
davepkz
Suppose I have the following data:
student quarter grade
------- ------- -----
Jones 1 A
Jones 2 B+
Jones 3 A
Jones 4 B-
Smith 1 B+
Smith 2 B
Smith 3 B
Smith 4 B-
....and I want a SELECT statement to output something like this:
student Q1grade Q2grade Q3grade Q4grade
------- ------- ------- ------- -------
Jones A B+ A B-
Smith B+ B B B-
Any ideas on how to do such a thing in SQL?
many thanks
Dave
student quarter grade
------- ------- -----
Jones 1 A
Jones 2 B+
Jones 3 A
Jones 4 B-
Smith 1 B+
Smith 2 B
Smith 3 B
Smith 4 B-
....and I want a SELECT statement to output something like this:
student Q1grade Q2grade Q3grade Q4grade
------- ------- ------- ------- -------
Jones A B+ A B-
Smith B+ B B B-
Any ideas on how to do such a thing in SQL?
many thanks
Dave