To order by 'NULL' values at the end and have '0.000' values appear after them, you can use the 'NULLS LAST' clause in the 'ORDER BY' statement. Here's an example query:

SELECT column_name
FROM table_name
ORDER BY column_name NULLS LAST, column_name <> '0.000';

This query will order the 'column_name' in ascending order with 'NULL' values appearing at the end and '0.000' values appearing after them.

Oracle SQL: Ordering by NULL Values and '0.000' in Ascending Order

原文地址: https://www.cveoy.top/t/topic/o8n4 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录