Selecting constants without referring to a table is perfectly legal in an SQL statement:
SELECT 1, 2, 3
The result set that the latter retu
In Oracle
SELECT CASE WHEN level = 1 THEN 'HI' WHEN level = 2 THEN 'BYE' END TEST FROM dual CONNECT BY level <= 2;