本文介紹了如何使用 >= sql case 語句中的條件?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我試圖在語句中放置一個 >= 條件,但它不允許這個條件.
I am trying to place a >= condition in statement, but it is not allowing this condition.
case
when ct.CRS_CAREER_LVL_CD = 'G' then 'Graduate '
when ct.CRS_CAREER_LVL_CD = 'L' then 'Law '
when convert(int, left(ct.CRS_CATLG_NO, 4) > = 99 then 'Upper Division'
else 'Lower Division'
end as courseLevelName
有沒有其他方法可以做到這一點?
Is there any other way to do this ?
推薦答案
when convert(int,left(ct.CRS_CATLG_NO,4)
^ ^ ^ ^
OPEN OPEN CLOSE CLOSE ?
這篇關于如何使用 >= sql case 語句中的條件?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!