I have a object in Universe B_first. Based on condition I have to convert the rows into columns.
Currently I am making it at report level by changing the query
B_first is the main field.
SELECT
b1.lnkey, b1.B_FIRST,
b1.WHICHBORR,
Fborr = (SELECT B_FIRST FROM .BOR Y WHERE Y.LKEY = b1.LKEY AND Y.WHICHBORR = 1),
Sborr = (SELECT B_FIRST FROM BOR x WHERE x.LKEY = b1.LKEY AND x.WHICHBORR = 2)
FROM
BOR as b1
where b1.whichborr in (1,2)and
b1.B_FIRST is not null
SELECT
Fborr = (SELECT max(y.B_FIRST) FROM BOR Y WHERE Y.LKEY = b1.LKEY AND Y.WHICHBORR = 1),
Sborr = (SELECT max(x.B_FIRST) FROM BOR x WHERE x.LKEY = b1.LKEY AND x.WHICHBORR = 2)
FROM BOR b1
where b1.whichborr in (1,2)
and b1.B_FIRST is not null
Rajx72:
With Johan’s earlier post you might be thinking that you have to create a FH SQL report…? No… I assume he is suggesting you that BO generated SQL should look like his.
Create the universe objects using MAX() function around the database columns… you will get single value…