I'm trying to convert a ms sqlserver stored procedure into db2 sql.
In db2, can you have a select within a select?
For example,
Select t1.col,
Case col2
when '1' then
select t2.col3 from table 2 as t2
where t1.col = t2.col
else
'2'
END...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.