Hi Guys!
I am trying to create a statement that will decide on a query to execute something like:
select 1,
CASE WHEN 1
THEN
(
select a,b,c,d from table1
)
ELSE
(
select e,f,g,h from table2
)
END
FROM dual
but I get the error: "Subquery must return only one column"
Is there a workaround for that somehow? I cannot see the "if" statements exist in Vertica also.
Thanks in advance,
Keren