Can use instanceof in query filter?
Hi all,
I would like to ask is operator instanceof allowed in query filter?
Thank you very much
I would like to ask is operator instanceof allowed in query filter?
Thank you very muchNo, but you can cast. If the cast in the filter fails, all that happens
is that subexpression evaluates to false.
Similar Messages
-
What are attributes we can use in LDAP query in server derivation rules
Q: What are attributes we can use in LDAP query in server derivation rules
A: Server derivation rules can be defined for an LDAP server in the same way as that for a Radius server. As opposed to a Radius server, where the list of attributes that are defined for a server are standard, for an LDAP server, the attributes depend on the type of the server.
The following table contains the list of attributes that are available for an Active Directory implementation. The server may maintain only a subset of these attributes, depending on how the user entries have been configured.
Attribute Name:
==============
sAMAccountname
userPrincipalName
givenName
sn
initials
description
physicalDeliveryOfficeName
telephoneNumber
mail
wwwHomePage
url
logonHours
logonWorkstation
userAccountControl
pwdLastSet
userAccountControl
accountExpires
streetAddress
postOfficeBox
postalCode
memberOf
primaryGroupID
title
department
company
manager
directReports
profilePath
scriptPath
homeDrive
homeDirectory
HomeDirDrive
telephoneNumber
otherTelephone
pager
pagerOther
mobile
otherMobile
fascimileTelephoneNumber
otherFascimileTelephoneNumber
ipPhone
otherIpPhone>
praveen.tecnics wrote:
> hi experts
>
> what are mapping rules in sap xi/pi ? how we can use this rules for special charters mapping .
to map special characters you need to use an element called CDATA in your mapping
a special character causes an error....as XI wont be able to read it (as it is not in a proper XML format)...so to parse this character through XI without causing an eror use the CDATA....just make a search on SDN and you will find the proper use of it....
For your info: http://www.w3schools.com/XML/xml_cdata.asp
Regards,
Abhishek.
Edited by: abhishek salvi on May 20, 2009 8:52 AM -
How many processors the TimesTen on Exalytics can use for 1 query operation?
Dear
I'm analyzing the deployment scenario Exalytics (2T, 40 processors) in cluster - two machines.
After reading the threads on this forum and some of the documentation available for my login Oracle Partner.
A doubt is:
When you run SQL against TimesTen.
To search for and return the data - for OBIEE Server, the TimesTen will use as many processors in this single operation?
Thanks
MMBCurrently TimesTen (11.2.2) does not support parallel query so a single query will use only one CPU core, though it will still be very fast due to the in-memory nature of TimesTen. And you can run 40 such queries concurrently without overloading the machine.
Support for parallel query is in our roadmap for a future release.
Chris -
How i can take a field of report for use it in query?
i hve a table where bills of customer are ready i simply take it on report by select statement.all bills are ready for print.now problem is that i need history of bills for every customer at it's own bill.when i give self join for history, it also add other customer history .there is any possible way that take customer id(report field) from report and search it's records . plzzzzzzzzzzzzzz
i hve a table where bills of customer are ready i
simply take it on report by select statement.all
bills are ready for print.now problem is that i need
history of bills for every customer at it's own
bill.when i give self join for history, it also add
other customer history .there is any possible way
that take customer id(report field) from report and
search it's records . plzzzzzzzzzzzzzzmay be you can use a child query and create a data link between
the original query and child query on customer id column.
I mean write a child query for searching records on customer id and then link
this customer id with your already existing query. I think this will solve your problem -
How I can delete a row using a simple query?
SZSLIFE_SPRIDEN_PIDM SZSLIFE_SGBSTDN_TERM_CODE_EFF SZSLIFE_SLRRASG_BLDG_CODE SZSLIFE_SLRRASG_ROOM_NUMBER SZSLIFE_SLRRASG_BEGIN_DATE SZSLIFE_SLRRASG_END_DATE
48547 199890
48547 199990
48547 199990 BLU 205 09/03/1999 12/23/1999
48547 200010
48547 200010 BLU 205 01/25/2000 05/25/2000
48547 200090
48547 200090 MOR 406 09/03/2000 12/23/2000
48547 200110
48547 200110 MOR 406 01/25/2001 05/25/2001
48547 200190
48547 200210
48547 200290
48547 200310
48547 200390
48547 200410
48547 200610
Here is what a simple question is probably for some of you; I can not get this to work. I need to delete all the rows that are duplicate like row #2 with the same SZSLIFE_SGBSTDN_TERM_CODE_EFF but with not
SZSLIFE_SLRRASG_BLDG_CODE and SZSLIFE_SLRRASG_ROOM_NUMBER
I need to write a code where it counts the SZSLIFE_SGBSTDN_TERM_CODE_EFF and if it have the same (2 times.
I need to delete the row without SZSLIFE_SLRRASG_BLDG_CODE and SZSLIFE_SLRRASG_ROOM_NUMBER
The SZSLIFE_SLRRASG_BLDG_CODE NEEDS to be not null, because I do an insert in this table I need to be able to insert null values.
How I can use a simple query where I can delete all the duplicate records without bldg_code and room number…
Here is the table description
SZSLIFE_SPRIDEN_PIDM NUMBER(8)
SZSLIFE_SPRIDEN_ID VARCHAR2(10)
SZSLIFE_SPRIDEN_LAST_NAME VARCHAR2(60)
SZSLIFE_SPRIDEN_FIRST_NAME VARCHAR2(60)
SZSLIFE_SPRIDEN_MI VARCHAR2(15)
SZSLIFE_SGBSTDN_TERM_CODE_EFF VARCHAR2(6)
SZSLIFE_SGBSTDN_STST_CODE VARCHAR2(2)
SZSLIFE_STVSTST_DESC VARCHAR2(30)
SZSLIFE_SGBSTDN_STYP_CODE VARCHAR2(2)
SZSLIFE_STVSTYP_DESC VARCHAR2(30)
SZSLIFE_SGBSTDN_LEVL_CODE VARCHAR2(2)
SZSLIFE_STVLEVL_DESC VARCHAR2(30)
SZSLIFE_SGBSTDN_RESD_CODE VARCHAR2(10)
SZSLIFE_STVRESD_DESC VARCHAR2(40)
SZSLIFE_SLRRASG_BLDG_CODE VARCHAR2(10)
SZSLIFE_SLRRASG_ROOM_NUMBER VARCHAR2(10)
SZSLIFE_SLRRASG_BEGIN_DATE VARCHAR2(12)
SZSLIFE_SLRRASG_END_DATE VARCHAR2(12)
SLRRASG_ASCD_CODE VARCHAR2(2)
I will appreciate any help!
SLRRASG_ROLL_IND VARCHAR2(2)Thank you very much Sandeep, this works!
1 DELETE SZSLIFE_TEMP2
2 WHERE
3 SZSLIFE_SGBSTDN_TERM_CODE_EFF
4 IN
5 (SELECT SZSLIFE_SGBSTDN_TERM_CODE_EFF
6 FROM SZSLIFE_TEMP2
7 GROUP BY
8 SZSLIFE_SGBSTDN_TERM_CODE_EFF
9 HAVING COUNT(*) > 1)
10 AND
11* SZSLIFE_SLRRASG_BLDG_CODE = ' '
12 /
4 rows deleted.
The only thing here is that the SZSLIFE_SLRRASG_BLDG_CODE can not be defined as a a NULL, so I can not use
where SZSLIFE_SLRRASG_BLDG_CODE is null
Here is how those two columns are define:
SZSLIFE_SLRRASG_BLDG_CODE VARCHAR2(10)
SZSLIFE_SLRRASG_ROOM_NUMBER VARCHAR2(10)
So,
my question is it will be safe to do SZSLIFE_SLRRASG_BLDG_CODE = ' ' ?
Again, it works, it deleted the rfows that I wanted...
Thank you very much!!!
Rogelio -
Dimension in WebI query filter needs to show Key and Description
Hi,
We have two requirements that we can't get them done:
1. We are building webi report based on Bex universes and we need to show the key and description of an object in the query filter of the report. Does this have to be set in the Bex variable or in the universe?
2. filter the LOV related to a specific dimension that is used in the query filter as prompt. The idea is to show a filtered list in the promp LOV of the dimension used in the query filter of the report. Does this have to be set in the Bex query or in the universe? If it is in the Bex Query, where exactly?
Our system is the following:
- BOE XI 3.1 SP2
- SAP NW 4.0
I await your answers. Thanks in advance.
xtianHi
1. We are building webi report based on Bex universes and we need to show the key and description of an object in the query filter of the report. Does this have to be set in the Bex variable or in the universe?
>> you can easily achieve that by creating a variable in the BEX query - that will return as a LoV with key and description assuming you have key and description in BW for the InfoObject.
2. filter the LOV related to a specific dimension that is used in the query filter as prompt. The idea is to show a filtered list in the promp LOV of the dimension used in the query filter of the report. Does this have to be set in the Bex query or in the universe? If it is in the Bex Query, where exactly?
>> so like filter Country = US in the filter and then prompt only for customers in the US ? if so that is not possible right now.
Ingo -
Hi
when i try to use object in query filter i am getting the error,the object contains two domain values 0 and 1.when i use that object in query filter inlist 1,i try to give 1 to query filter inlist value it thros the error ORA 00936 error .
Please kindly help me out where the problem is.
Thanks in advanceHello..
Tell me one thing how your selecting the Value for the prompt if you select "Inlist" ,You have to select from the list(Before selecting refresh the List of Values).
In that Case User can not enter the manual Input in the Prompt.
But the error message clearly saying It is parsing error.
To which database your connection is it SAP or SQL,
If It is SQL do this .....
Remove the space in the Where clause of the object definition.
If it is not resolved share the query. and run the same query in database.
Thanks
Santhu.....
Edited by: Santhosh Vudarla on Dec 8, 2010 10:03 AM -
How can I make CONTAINS query work for a date range
In either 9i or 10g (eventual). I have a CONTEXT index that contains multiple columns from multiple tables and using a USER_DATASTORE. E.g., I have names that come from 3 different table locations and dates that come from 4. I can index them fine but how can I perform a single consolidated CONTAINS query against the single CONTEXT index to do the following:
smith WITHIN lname AND john WITHIN fname AND dob BETWEEN '19870315' and '19970315'
I know that I can use a mixed query but this is inefficient (esp since I have birth dates in multiple tables). Is there any algorithm for a range operator (>, <, between?) within the CONTAINS operator?
CTXCAT index is not an option, as I have many text columns I am searching.
Thanks!When you run the cdstore.sql, in addition to creating the ctx_cd package, it also creates the friedman package that contains the algorithm that the ctx_cd package uses. You could use the functions from that friedman package in your procedure for your user_datastore and in the creation of your query string, as demonstrated below.
SCOTT@orcl_11g> CREATE OR REPLACE PROCEDURE my_proc
2 (p_rowid IN ROWID,
3 p_clob IN OUT NOCOPY CLOB)
4 AS
5 BEGIN
6 FOR r IN
7 (SELECT emp.ename, emp.job, emp.hiredate, dept.dname
8 FROM emp, dept
9 WHERE emp.deptno = dept.deptno
10 AND emp.ROWID = p_rowid)
11 LOOP
12 DBMS_LOB.WRITEAPPEND (p_clob, 7, '<ename>');
13 DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (r.ename), r.ename);
14 DBMS_LOB.WRITEAPPEND (p_clob, 8, '</ename>');
15 DBMS_LOB.WRITEAPPEND (p_clob, 5, '<job>');
16 DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (r.job), r.job);
17 DBMS_LOB.WRITEAPPEND (p_clob, 6, '</job>');
18 DBMS_LOB.WRITEAPPEND (p_clob, 7, '<dname>');
19 DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (r.dname), r.dname);
20 DBMS_LOB.WRITEAPPEND (p_clob, 8, '</dname>');
21 DBMS_LOB.WRITEAPPEND (p_clob, 10, '<hiredate>');
22 -- apply friedman algorithm to date column ------------------
23 friedman.init
24 (TO_NUMBER (TO_CHAR (TO_DATE (19000101, 'YYYYMMDD'), 'J')),
25 TO_NUMBER (TO_CHAR (TO_DATE (21001231, 'YYYYMMDD'), 'J')));
26 DBMS_LOB.WRITEAPPEND
27 (p_clob,
28 LENGTH (friedman.encodedate (r.hiredate)),
29 friedman.encodedate (r.hiredate));
30 --------------------------------------------------------------
31 DBMS_LOB.WRITEAPPEND (p_clob, 11, '</hiredate>');
32 END LOOP;
33 END my_proc;
34 /
Procedure created.
SCOTT@orcl_11g> SHOW ERRORS
No errors.
SCOTT@orcl_11g> BEGIN
2 CTX_DDL.CREATE_PREFERENCE ('my_datastore', 'USER_DATASTORE');
3 CTX_DDL.SET_ATTRIBUTE ('my_datastore', 'PROCEDURE', 'my_proc');
4 END;
5 /
PL/SQL procedure successfully completed.
SCOTT@orcl_11g> CREATE INDEX my_index ON emp (ename)
2 INDEXTYPE IS CTXSYS.CONTEXT
3 PARAMETERS
4 ('DATASTORE my_datastore
5 SECTION GROUP CTXSYS.AUTO_SECTION_GROUP')
6 /
Index created.
SCOTT@orcl_11g> EXEC DBMS_STATS.GATHER_TABLE_STATS (USER, 'DEPT')
PL/SQL procedure successfully completed.
SCOTT@orcl_11g> EXEC DBMS_STATS.GATHER_TABLE_STATS (USER, 'EMP')
PL/SQL procedure successfully completed.
SCOTT@orcl_11g> VARIABLE cstring VARCHAR2(4000)
SCOTT@orcl_11g> BEGIN
2 :cstring := 'smith WITHIN ename';
3 :cstring := :cstring || ' AND ' || 'clerk WITHIN job';
4 :cstring := :cstring || ' AND ' || 'research WITHIN dname';
5 -- apply friedman algorithm to search criteria ---------------------------
6 friedman.init
7 (TO_NUMBER (TO_CHAR (TO_DATE (19000101, 'YYYYMMDD'), 'J')),
8 TO_NUMBER (TO_CHAR (TO_DATE (21001231, 'YYYYMMDD'), 'J')));
9 :cstring := :cstring || ' AND ((' ||
10 friedman.integercontainscriteria
11 (TO_NUMBER (TO_CHAR (TO_DATE ('19800315', 'YYYYMMDD'), 'J')),
12 TO_NUMBER (TO_CHAR (TO_DATE ('19810315', 'YYYYMMDD'), 'J')),
13 'B')
14 || ') WITHIN hiredate)';
15 ---------------------------------------------------------------------------
16 END;
17 /
PL/SQL procedure successfully completed.
SCOTT@orcl_11g> SET AUTOTRACE ON EXPLAIN
SCOTT@orcl_11g> SELECT *
2 FROM emp
3 WHERE CONTAINS (ename, :cstring) > 0
4 /
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17-DEC-80 800 20
Execution Plan
Plan hash value: 1887222286
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 37 | 4 (0)| 00:00:01 |
| 1 | TABLE ACCESS BY INDEX ROWID| EMP | 1 | 37 | 4 (0)| 00:00:01 |
|* 2 | DOMAIN INDEX | MY_INDEX | | | 4 (0)| 00:00:01 |
Predicate Information (identified by operation id):
2 - access("CTXSYS"."CONTAINS"("ENAME",:CSTRING)>0)
SCOTT@orcl_11g> -
Maximum number of characteristics and Key figures used in a Query
Hi Experts,
Any Thought on the maximum number of Characterstics and key figures that can used in a Query. I know it impacts performance query and runs for very long time.
Thanks,
Kumar.Hi Kumar,
Welcome to SDN.
I really did not think about it till now, sharing my thoughts on this -
1. You can use all the characteristics & Key Figure ( & more)in Query what you have in you Cube.
2. Query is suppose to serve a purpose, to deliver you analytics based on some KPI etc & it will have maximum no of char / key figures which human mind could make some sense of.
3. Performance of query actually is divided into three areas -
a. database time
b. OLAP time
c. Front End time
and if you query on not performing well first look at which area is taking maximum time & the optimize that first & there are various ways to optimize each area.
Hope it helps.
VC -
How to use OMB to change filter conditions in OWB maps
Hi,
I want to know how we can use OMB to change filter conditions in an OWB map.
As per my scenario i have a filter operator FLTR_1 in my maps and i have to change its filter condition from
INOUTGRP1.ID IN (1,2)
AND
INOUTGRP1.VALUE > CONST_0_MAX_VAL
to
INOUTGRP1.ID IN (1,2)
AND
INOUTGRP1.VALUE > CONST_6_MAX_VAL
Just for everybody's information we are migrating from OWB 9.2 to OWB 10.2 and we have called procedures in constants and used their values in filter conditions.OWB 10.2 generates the values for constants in a different way than OWB 9.2 thats why this change is required.I wish to automate the act of changing constant names so we can save time in changing the maps.
ThxCarsten,
I created a map in OWB 10.2 and ran the following command
The filter operator name in this map is FILTER
Carsten Herbe wrote:
OMBALTER MAPPING 'TEST_MAP' MODIFY OPEARTOR 'FILTER' SET PROPERTIES (FILTER_CONDITION) VALUES ('INOUTGRP1.ID IN (1,2) AND INOUTGRP1.VALUE > CONST_6_MAX_VAL ')
I got this error:
OMB02933: Error getting child object of type OPEARTOR with name FILTER: MMM1034:
Property OPEARTOR does not exist.
Could you pls help on this.
Thx -
Lightswitch html use the 'any' query method
Hi
Can someone please tell me how i can use the "any" query method for entity collections in lightswitch html?
ThanksHi Xpert360
It's for a type of EntityCollection this is the code from the msls-2.5.2.vsdoc.js line 2220
any: function any(predicate) {
/// <summary>
/// Determines whether this sequence contains any
/// items that optionally satisfy a condition.
/// </summary>
/// <param name="predicate" type="Function" optional="true">
/// A function to test each item for a condition.
/// <br/>Signature: Boolean item.predicate(item)
/// </param>
/// <returns type="Boolean">
/// True if this sequence contains any items that
/// satisfy the condition, if any; otherwise, false.
/// </returns>
var result = false;
this.each(function (item) {
if (!predicate || predicate.call(item, item)) {
result = true;
return false;
return true;
return result;
Check it out and let me know if you know how to use it, my problem is how to use the call back function.
Thanks -
Query-filter-options for everything.me Mozilla edition
Where can I get the query-filter-options for everything.me Mozilla edition?
Hi flegno,
Depending on which version that Firefox is on, currently in the Simulator is looks like there is only a way to pin the apps that result in a searched category. Searching for people in contacts who have a particular app installed does not seem to be an option? However I cannot know for sure.
Can you give another example on what you are looking for everything.me to do? -
How can I use a variable in webi query filter
I created a webi report using the fiscal year/month(period) field as a filter to show a window of 18 periods. The report works just as requested using a between filter on fiscal period with prompts for both the start and ending periods. Now I'd like to calculate the start period based on what was entered in the prompt for the ending period (e.g. enter 201106 for the TO prompt on the between statement and have the FROM statement filled in as 201001.) I can create variables in the report to display both the user response to the ending period prompt and the calculated starting period, but I cannot figure out how to incorporate that calculated starting date into the FROM side of the between query filter.
Any suggestions?
Thanks,
Doug
Sorry I got my froms and to's mixed up in the first draft. Edited by: Doug Roswold on Mar 4, 2011 6:27 PMLet me understand what you want to do. You don't want to use two prompts, just one, insn't it?
I mean, instead of:
Filter area:
Date between "From prompt" to "To Prompt"
You want something like:.
Filter area:
Date between Variable to "To Prompt"
if I'm not wrong that's not possible to achieve in Webi Query Panel.
Can you modify your universe? The only way to achieve it is modifying your universe, creating your formula in the universe and assigning it to an object, so you can use this new object in your filter area like this:
Date between MyUniverseObject to "To Prompt"
Edited by: PadawanGirl on Mar 4, 2011 8:15 PM -
SPSiteDataQuery - filter by file Title - Can I use variable for the filter value?
I use SPsiteDataQuery to search across multiple lists and filter by file title. I have the file title information in a variable.
Can I use variable in the filter value?
string fileName = "Policies.doc"
SPSiteDataQuery spQry = new SPSiteDataQuery();
spQry.ViewFields = "<FieldRef Name='Title'/><Value Type='Text'>fileName</Value>"If I have understood correctly, you want to search based upon a File title in all the sites. You can include a query to filename in the spQry
spQry.Query = "<Where>" +
"<Eq>" +
"<FieldRef Name=\"FileLeafRef\"/>" +
"<Value Type=\"Text\">" + fileName + "</Value>" +
"</Eq>" +
"</Where>";
get2pallav
Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you. -
CAML Query help using recursiveall and date filter together
Hello,
Please let me know what is wrong with the query below,
<View Scope='RecursiveAll'>
<Query>
<Where>
<Leq>
<FieldRef Name='Modified'/>
<Value Type='DateTime' IncludeTimeValue='FALSE'>date value</Value>
</Leq>
</Where>
</Query>
</View>
Above query returns zero items, it should return 3 items in my current scenario.
If I do just the folllowing, three items are returned
<View Scope='RecursiveAll'>
<Query>
</Query>
</View>
I need date filter to work with recursiveall . Not sure what is wrong with the query
Student For LifeHi,
Per my understanding, you might want to use “RecursiveAll” with date filter in your CAML query statement.
I suggest you take the code demo below which writes in Server Object Model for a try in your environment to see if it can work for you:
using (SPSite oSiteCollection = new SPSite("http://yoursite"))
using (SPWeb web = oSiteCollection.RootWeb)
SPList list = web.Lists["List1"];
SPQuery qry = new SPQuery();
qry.Query =
@" <Where>
<And>
<Leq>
<FieldRef Name='Modified' />
<Value Type='DateTime'>2015-03-07T12:00:00Z</Value>
</Leq>
<Eq>
<FieldRef Name='FSObjType' />
<Value Type='Integer'>0</Value>
</Eq>
</And>
</Where>";
qry.ViewFields = @"<FieldRef Name='Title' />";
qry.ViewAttributes = "Scope='RecursiveAll'";
SPListItemCollection items = list.GetItems(qry);
foreach (SPListItem item in items)
Console.WriteLine(item["Title"]);
Thanks
Patrick Liang
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]
Maybe you are looking for
-
Oracle 10g R2 Enterprise Manager Web Interface doesn't see the database
Been at this a few days now... so I hope you can help. Windows XP (sp2 slipstreamed) Logged in as "Administrator" to the local machine (not the domain) I have downloaded Oracle 10g for Windows and have installed it using the Universal installer. The
-
9i Reports images not displayed
I have a report that generates a graph It is working fine in pdf format but in HTML format it works only on the App Server or the Infrastructure box Could somebody help me with this Thanks in advance Santosh
-
I know others have addressed this issue but I am having multiple issues uploading to iWeb. I am trying to publish an entire site, and I get random errors at random times. Some times the errors are "Check the internet connection", sometimes the errors
-
My tables render differently in IE
I created this in Tables since it's for an HTML email. It looks perfect in Firefox, but in IE I'm getting these white gaps of space on the column where the main content is. Does anyone know why? I was careful this time not to use any nested tables. P
-
Black Ink Printing from Photo Cartridge Only
I've had the Photosmart Premium for about 6 months now and while it does a great job it prints black from the photo cartridge only. I've replaced it several times already and have not printed that many photos. Most of my printing is text only. I h