Row wise initialized variable in OBIEE 11g and VALUELISTOF function
2012-01-15 22:14
786 查看
OBIEE up to 10g had a limitation around session variables which are row wise initialized ,in that you cannot use that variable to initialize another subsequent session variable. Good news!! 11g seems to have a fix for this.
For e.g. lets say you have a session (row wise initialized) variable called “REGION” initialized as follows
select ‘REGION_LIST’ ,region_id from region_table.
Now lets say you want to initialize another row wise initialized variable based on the ‘REGION_LIST’ variable you had initialized earlier. For e.g. all the accounts belonging to the ‘REGION_LIST’ variable.
Here is the new way of doing it in 11g
select ‘ACCOUNT_LIST’ ,account_id from accounts where
region_id in (VALUELISTOF(NQ_SESSION.REGION_LIST)).
Keep in mind this will go back to the database as an in list, coma separated and the values would be in single quotes.
相关文章推荐
- This function has none of Deterministic,no sql,or reads sql data in its declaration and binary logging is enabled(you *might* want to use the less safe log_bin_trust_function_creators variable
- MySQL报错“Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre”
- 'ddlCities' has a SelectedValue which is invalid because it does not exist in the list of items
- Duplicate range boundary values are not allowed in partition function boundary value list.
- Given constant integers x and t, write a function that takes no argument and returns true if the function has been called x number of times in last t secs.
- TypeError: Value passed to parameter 'input' has DataType float64 not in list of allowed values: fl
- [Err] 1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated colum
- 有序矩阵中查找第k小的元素 Kth smallest element in a row-wise and column-wise sorted 2D array
- what is the difference of select single and select up to one row in abap
- [QTP] Retrieves the value of the cell in the specified row of the parameter in the run-time Data Tab
- 错误码: 1418 This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and
- [Err] 1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated colum
- Stop and Start OBIEE 11g Services in Linux
- 11g check the status of daemons and resource in standby rac
- This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary log
- mysql:Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column
- Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'userinfo.
- Could not find a price list in Ordered UOM xxx and Primary UOM of the item
- This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary
- Could not find a price list in Ordered UOM xxx and Primary UOM of the item