Case statement for multiple options [message #646745] |
Thu, 07 January 2016 14:16 |
|
blyzz
Messages: 10 Registered: October 2015
|
Junior Member |
|
|
I have a table of tests where I have data in the format:
English 8:30 9:00 9:30
Reading start stop
Writing start continue stop
Compre start stop
I need to get start and stop time for all sections as when the value for each section is stop then the test is complete
So the start time for the test is 8:30 and finish time is 9:30
I was thinking something like this:
Case when subject=english
when section=reading and value =start then time as start_Time
when section=reading and value =stop then time as end_Time
when section=writing and value =start then time as start_Time
when section=writing and value =stop then time as end_Time
when section=comprehension and value =start then time as start_Time
when section=comprehension and value =stop then time as end_Time
How can I do that?
Thanks,
blyzz
|
|
|
|
|
|