WITH T AS
(SELECT 1 ID
FROM DUAL
UNION ALL
SELECT 2 ID
FROM DUAL
UNION ALL
SELECT 3 ID
FROM DUAL
UNION ALL
SELECT 4 ID
FROM DUAL),
T1 AS
(SELECT 1 ID
FROM DUAL
UNION ALL
SELECT 3 ID
FROM DUAL
UNION ALL
SELECT 4 ID
FROM DUAL
UNION ALL
SELECT 5 ID
FROM DUAL)
SELECT *
FROM T
MINUS
SELECT * FROM T1