A
Adrian
Hi,
I have the following tables:
Table #1: Subject
SubjectID | SessionID |
-----------------------------------------------------------
U0179C | DF
U0245D | FS
Table #2: ErrorCorrectionRecords
ID | AnsCorrect | TimeTaken | ErrorType |
CorrectedBy |
----------------------------------------------------------------------------
-
1 | 1 | 60 | WCO
| U0179C
2 | 0 | 100 | WRO
| U0179C
3 | 1 | 110 | WOP
| U0179C
4 | 0 | 120 | WCNT
| U0179C
Note: "ErrorType + CorrectedBy" is unique. That is a subject will only
correct one error belonging
to each type.
I need to write a query which returns the following table:
Table #3: Results
SubjectID | SessionID | WCO_CORRECT| WRO_CORRECT| WOP_CORRECT|
WCNT_CORRECT|
----------------------------------------------------------------------------
-----------------------------------
U0179C | DF | 1 | 0
| 1 | 0
How do I do this in MS Access ?? Please help... Thanks a lot!
I have the following tables:
Table #1: Subject
SubjectID | SessionID |
-----------------------------------------------------------
U0179C | DF
U0245D | FS
Table #2: ErrorCorrectionRecords
ID | AnsCorrect | TimeTaken | ErrorType |
CorrectedBy |
----------------------------------------------------------------------------
-
1 | 1 | 60 | WCO
| U0179C
2 | 0 | 100 | WRO
| U0179C
3 | 1 | 110 | WOP
| U0179C
4 | 0 | 120 | WCNT
| U0179C
Note: "ErrorType + CorrectedBy" is unique. That is a subject will only
correct one error belonging
to each type.
I need to write a query which returns the following table:
Table #3: Results
SubjectID | SessionID | WCO_CORRECT| WRO_CORRECT| WOP_CORRECT|
WCNT_CORRECT|
----------------------------------------------------------------------------
-----------------------------------
U0179C | DF | 1 | 0
| 1 | 0
How do I do this in MS Access ?? Please help... Thanks a lot!