📜  sql server order by nulls last - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:04.699000             🧑  作者: Mango

代码示例1
SELECT *FROM creditCardORDER BY CASE WHEN monthlyLimit IS NULL THEN 1 ELSE 0 END DESC, monthlyLimit DESC;