Hi,
i want to know how correlated subqueries can be achieved in web intelligence.
From BOBJ forum, if the correlated subquery is in where clause of the sql, then it can be achived by creating a predefine query filter in the universe.
Filtering for Latest Data in a Universe | Business Intelligence Articles from www.gulland.com
What about if the correlated subquery is in the select statment of the SQL. how can i achieve this either at webi report or universe level.
I am actually converting free hand sql reports to webi by designing a universe. i have lot of reports using this correlated subqueries in select and where clause. the below is a scenario where i am looking to get this in webi or universe.
SELECT
A.INSTRDATE,
B.AC_DESC,
C.BRANCH_NAME
D.SECTOR_DESC "LOC",
(select max(txn_date) from master where direction='O' and ben_account=A.BENACCOUNT
and instrument_no_1=A.INSTRNO) Cheque_used_dt,
A.FILE_ID
FROM
exception A,
ACCOUNT B,
BRANCH C,
SECTORS D
WHERE
A.BENACCOUNT = B.CUST_AC_NO(+)
AND A.TXN_BRN = C.BRANCH_CODE
AND SUBSTR(A.ROUTINGNO,5,3)=D.SECTOR_CODE(+)
AND A.FILE_ID = @variable ('Please enter the File ID')
and A.txndate=(select max(txndate) from exception where file_id=a.file_id)
The correlated subqueries are in bold letters.
Any help is highly appreciated
Regards