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
Here is how to do it using the XML features of DB2
SELECT * FROM XMLTABLE ('$doc/ROWSET/ROW' PASSING XMLPARSE ( DOCUMENT ' ') AS "doc" COLUMNS "A" INT PATH 'A/@val', "B" INT PATH 'B/@val', "C" INT PATH 'C/@val' ) AS X ;