WITH tab
AS (SELECT 10 a, 'Demo 1' name FROM DUAL
UNION ALL
SELECT NULL a, 'Demo 2' name FROM DUAL
UNION ALL
SELECT 2 a, 'Demo 3' name FROM DUAL)
SELECT a, name
FROM tab
ORDER BY 1 NULLS FIRST;
WITH tab
AS (SELECT 10 a, 'Demo 1' name FROM DUAL
UNION ALL
SELECT NULL a, 'Demo 2' name FROM DUAL
UNION ALL
SELECT 2 a, 'Demo 3' name FROM DUAL)
SELECT a, name
FROM tab
ORDER BY 1 NULLS LAST;
WITH tab
AS (SELECT 10 a, 'Demo 1' name FROM DUAL
UNION ALL
SELECT NULL a, 'Demo 2' name FROM DUAL
UNION ALL
SELECT 2 a, 'Demo 3' name FROM DUAL)
SELECT a, name
FROM tab WHERE a IS NULL;
WITH tab
AS (SELECT 10 a, 'Demo 1' name FROM DUAL
UNION ALL
SELECT NULL a, 'Demo 2' name FROM DUAL
UNION ALL
SELECT 2 a, 'Demo 3' name FROM DUAL)
SELECT a, name
FROM tab WHERE a IS NOT NULL;
I am a seasoned developer with a passion for crafting robust solutions in the realm of Oracle Database and Oracle APEX. With over 10 years of experience under my belt,
* Oracle APEX
* APEX Themes and Plugins
* Oracle Database
* CSM & ASM