![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 |
#3
| |||
| |||
|
|
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 |
#4
| |||
| |||
|
|
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 |
#5
| |||
| |||
|
|
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- |
#6
| |||
| |||
|
|
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 |
#7
| |||
| |||
|
|
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- |
![]() |
| Thread Tools | |
| Display Modes | |
| |