![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Subqueries aren't the best way to get this result anyway. You can use CASE expressions. The following example also demonstrates the answer to your question. Reference the calculated columns in a derived table. |

![]() |
| Thread Tools | |
| Display Modes | |
| |