-4
我有一個僱員表如下:案例基於查詢
ID|description|Grade I|Grade II|
1|Permanent | |T |
2|Temp |T | |
3|Permanent | | |
甲級列資格「優」或「良好」;這取決於哪個上述列不爲空。
我需要編寫一個查詢其給出以下的輸出:
ID|description
1|Permanent(Excellent)
2|Temp(Good)
3|Permanent
我SQL Server上2008
幫助表示讚賞。
如同在計算器上的一切......你嘗試過什麼? – Rob
您可以在select中使用函數或case語句來爲您返回描述,但像Rob說的那樣。你有什麼嘗試 – Jaques