select studentnr, result,
iif(result>= 5.5, 'yes', 'no') as passed
from grade
| Studentnr | Result | Passed | |-----------|---------|-------------------| | 101 | 6.5 | Yes |
,但我試圖實現
| Studentnr | Result | Passed |
|-----------|---------|-------------------|
| 101 | 6.5 | Yes lower than 7 |
| 102 | 8 | Yes higher than 7 |
| 103 | 4.5 | No |
有沒有辦法與IIF做到這一點?