Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 9405

DB2 :: RE: DB2 query Using Recursion, Converting Rows to Column

$
0
0
Author: Delip
Posted: Wed Feb 15, 2017 12:37 pm (GMT 5.5)

Hi,

Can't we use Union all like below,

(select HR NAME, 'HR' DEPARTMENT FROM TABLE WHERE HR > ' ')

UNION
(select FINANCE NAME, 'FINANCE' DEPARTMENT FROM TABLE WHERE FINANCE > ' ')

UNION
.
.
.

Regards,
Dileep
_________________
Dil


Viewing all articles
Browse latest Browse all 9405

Trending Articles