Operators in query

Can someone tell me what doe this operator mean
%A

refer: http://help.sap.com/saphelp_sem350bw/helpdata/en/f1/0a5a2ee09411d2acb90000e829fbfe/frameset.htm it explains with the hlp of an example
Percentage Share (%A)
<Operand1> %A <Operand2>
This gives the percentage share of operand 1 and operand 2. It is identical to the formula
100 * <Operand1> / abs(<Operand2>) , if <Operand2> does not equal 0 and the character for “Division by 0” if <Operand2> equals 0.
Fixed Costs %A Costs expresses the proportion of the total cost of a product that is the fixed cost.
Edited by: sam hennry on Apr 16, 2008 9:29 AM

Similar Messages

  • How to use SEM_RELATED & SEM_MATCH in a single query

    Hi,
    I am trying to combine RDF and RDBMS data using SEM_RELATED.
    Below sample is working fine but the requirement is i have to add few more conditions in SEM_MATCH
    Please suggest me how to combine sem_match and sem_related in a single query.
    Please provide me the example which use SEM_MATCH and SEM_RELATED in a single query.
    SELECT distinct dg_term_property.CONTEXT_NM FROM dg_term_property,dg_term
    WHERE SEM_RELATED ('<http://www.cs.com/mdm/data_glossary#Facilities>',
    '<http://www.w3.org/2000/01/rdf-schema#subClassOf>',
    '<http://www.cs.com/mdm/data_glossary#Reference_Data_Classes>',
    sem_models('GSR_PR_CURR'), sem_rulebases('owlprime')) = 1
    and DG_TERM.TERM_NM=DG_TERM_PROPERTY.TERM_NM;
    Let me know if you need any other details.
    Regards,
    Kavitha.

    Hi Kavitha,
    I am not sure what exactly you are trying to accomplish with this query but the use of the SEM_RELATED is incorrect. To fulfill your requirement most likely you may not even need to combine SEM_RELATED with SEM_MATCH. Actually those two are not built to be used together.
    Take a look at the SEM_RELATED documentation and see if you can use it to get the results you need. The example that you are providing is not using the SEM_RELATED correctly.
    Here is the documentation:
    http://docs.oracle.com/cd/E11882_01/appdev.112/e25609/owl_concepts.htm#CHDJBGFI
    Go to:
    2.3 Using Semantic Operators to Query Relational Data
    Regards!
    Jorge
    Edited by: jbarba on Aug 20, 2012 10:20 AM
    Edited by: jbarba on Aug 20, 2012 10:21 AM

  • Pipelined functions with spatial data

    hi,
    i've been trying to use pipelined functions (using the TABLE and CAST operators to query data from them) to retrieve large amounts of spatial data.
    i've followed the examples on metalink, and they work fine. my problem arises when i apply similar functions to query data using SDO_FILTER, i've been trying to pipe a mdsys.sdo_geometry datatype (ref cursor) into the function - returns null.
    are spatial datatypes supported for use in pipelined functions, and using the table and cast operators?
    if they are, where can i find further reading/reference on the subject?
    thanks
    santosh sewlal

    Check out http://otn.oracle.com/products/spatial/pdf/mapviewerfaq_31.pdf
    or
    You can look for a third party solution that can draw maps.
    Then you call out to this component from Forms.

  • Use realational operators in an SQL query??????

    does any one knows how to use realational operators in an SQL query??????
    i wud like to do something like
    select decode(2<3,sysdate,sydate +1) from dual
    but i know decode does not supports relational operators......
    thanx and Regards
    amyt

    You can use a CASE statement which does support relational operators, or if you must use DECODE, then you can use something like:
    SELECT DECODE(SIGN(2 - 3),-1,sysdate,sysdate - 1)
    FROM dual;The SIGN function returns -1 if the expression is < 0, 1 if the expression is > 0 and 0 if the expression is 0. This works for numeric comparisions. You can use the GREATEST or LEAST functions in a similar fashion for character comparisions.
    TTFN
    John

  • Spatial query w/ logical operators in a subquery on Linux using Oracle 1

    Hello...
    I'm being given XML that I need to parse and create SQL from it. Below my signature is the SQL that I generate (its a simple example) and can be more elaborate due to the logical operators (AND and OR) given in the XML.
    The problem that we're seeing is performance-based: when one of the logical operator queries is Spatial-based, like below. Running it in JDBC, the query never returns.
    The spatial query just by itself returns ~300 rows (takes approximately 0.2 seconds). The "PERCENTAGE" query by itself returns about ~40000 rows (takes approximately ~.8 seconds).
    If we run the query below with 2 non-spatial subqueries, the result returns and performance is very acceptable (~ 0.9 seconds)-- the result set is about 80000 rows.
    Thanks,
    Jim
    =========================
    SELECT
    COLUMN_WE_WANT , RESULTS
    FROM
    TABLE_A
    WHERE
    COLUMN_WE_WANT IN
    SELECT
    COLUMN_WE_WANT
    FROM
    TABLE_A
    WHERE
    SDO_OVERLAPBDYINTERSECT(TABLE_A.MY_SPATIAL_COLUMN,
    SDO_GEOMETRY(2003,
    4326,
    null,
    SDO_elem_info_array( 1 , 3 , 1 ),
    SDO_ORDINATE_ARRAY( lng_1,lat_1 , lng_2,lat_2 , lng_3,lat_3 , lng_4,lat_4 , lng_1,lat_1 )
    ) = 'TRUE'
    OR
    COLUMN_WE_WANT IN
    SELECT
    COLUMN_WE_WANT
    FROM
    TABLE_B
    WHERE
    SOME_PERCENTAGE_RATE_COLUMN < 90
    )

    Its difficult to comment without seeing the execution plan. You should trace this query to get a better idea of exactly what's happening.
    Depending on the complexity of the logical operators, I would look at doing this using set operations. So for an OR you might have...
    SELECT COLUMN_WE_WANT, RESULTS
    FROM TABLE_A
    WHERE COLUMN_WE_WANT IN (
         SELECT COLUMN_WE_WANT
         FROM TABLE_A
         WHERE SDO_OVERLAPBDYINTERSECT(TABLE_A.MY_SPATIAL_COLUMN,SDO_GEOMETRY(2003,4326,
         NULL, SDO_elem_info_array( 1 , 3 , 1 ),
         SDO_ORDINATE_ARRAY( lng_1,lat_1 , lng_2,lat_2 , lng_3,lat_3 , lng_4,lat_4 , lng_1,lat_1 ) )) = 'TRUE'
    UNION
         SELECT COLUMN_WE_WANT
         FROM TABLE_B
         WHERE SOME_PERCENTAGE_RATE_COLUMN < 90)For an AND, you would use INTERSECT.
    Edited by: Reggie to remove the extra INTERSECT

  • Spatial query w/ logical operators in a subquery on Linux using Oracle 10g

    Hello...
    I'm being given XML that I need to parse and create SQL from it. Below my signature is the SQL that I generate (its a simple example) and can be more elaborate due to the logical operators (AND and OR) given in the XML.
    The problem that we're seeing is performance-based: when one of the logical operator queries is Spatial-based, like below. Running it in JDBC, the query never returns.
    The spatial query just by itself returns ~300 rows (takes approximately 0.2 seconds). The "PERCENTAGE" query by itself returns about ~40000 rows (takes approximately ~.8 seconds).
    If we run the query below with 2 non-spatial subqueries, the result returns and performance is very acceptable (~ 0.9 seconds)-- the result set is about 80000 rows.
    Thanks,
    Jim
    =========================
    SELECT
    COLUMN_WE_WANT , RESULTS
    FROM
    TABLE_A
    WHERE
    COLUMN_WE_WANT IN
    SELECT
    COLUMN_WE_WANT
    FROM
    TABLE_A
    WHERE
    SDO_OVERLAPBDYINTERSECT(TABLE_A.MY_SPATIAL_COLUMN,
    SDO_GEOMETRY(2003,
    4326,
    null,
    SDO_elem_info_array( 1 , 3 , 1 ),
    SDO_ORDINATE_ARRAY( lng_1,lat_1 , lng_2,lat_2 , lng_3,lat_3 , lng_4,lat_4 , lng_1,lat_1 ) )
    ) = 'TRUE'
    OR
    COLUMN_WE_WANT IN
    SELECT
    COLUMN_WE_WANT
    FROM
    TABLE_B
    WHERE
    SOME_PERCENTAGE_RATE_COLUMN < 90
    )

    There is a spatial forum. You will likely have a far better experience there.

  • Incorrect operators in af:query component

    We have created a search popup using af:query component based on a view criteria.
    The view criteria uses two string[varchar2(60) in EO] attributes named "Name" and "Owner".
    TerritorySearchViewCriteria
    Group
    Name CONTAINS :BindTerritoryName -- String in VO, Varchar2(60) in EO
    AND Owner CONTAINS :BindOwnerName -- String in VO, varchar2(360) in EO
    Issue:
    The operators drop down shows some irrelevant search operators(not meaningful to strings) such as "BETWEEN",
    "NOT BETWEEN", "BEFORE", "AFTER", "ON OR AFTER" and "ON OR BEFORE". Because of this we are seeing some unexpected
    search results when this operators are used for searching.
    On looking at the Bali site and BLAF guidelines page it clearly states that the list of operators for string are
    "EQUALS", "NOT EQUALS", "STARTS WITH", "ENDS WITH", "CONTAINS", "DOES NOT CONTAIN", "LIKE", "IS BLANK" and "IS NOT
    BLANK".
    Bali link: http://dadvmc0454.us.oracle.com:9002/faces-11.1.1.2.0/faces/components/query.jspx?_afrLoop=19876843626481699&_afrWindowMode=0&_afrWindowId=null
    BLAF guidelines: http://blafstaging.us.oracle.com/blafSite/guidelines5/search.html#queryPanelCond
    Attribute Definition in TerritoryEO:
    <Attribute
    Name="Name"
    IsNotNull="true"
    Precision="60"
    ColumnName="NAME"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    SQLType="VARCHAR"
    TableName="MOT_TERRITORIES">
    Attribute definition in TerritoryVO:
    <ViewAttribute
    Name="Name"
    IsNotNull="true"
    PrecisionRule="true"
    EntityAttrName="Name"
    EntityUsage="Territory"
    AliasName="NAME">
    Query component in ManageTerritories.jsff:
    <af:query id="qryId1" headerText="#{acrGenBundle['Header.Search']}"
    disclosed="true"
    value="#{bindings.TerritorySearchQuery.queryDescriptor}"
    model="#{bindings.TerritorySearchQuery.queryModel}"
    queryListener="#{backingBeanScope.ManageTerritoriesBean.onTerritorySearchQuery}"
    queryOperationListener="#{bindings.TerritorySearchQuery.processQueryOperation}"
    resultComponentId="::pc2:resId1"
    saveQueryMode="hidden"
    modeChangeVisible="false"
    conjunctionReadOnly="true"
    styleClass="AFStretchWidth"/>
    Is there a way to eliminate the operators which does not make sense for String type.
    Thanks,
    Sekar

    As per the guidelines mentioned for String, You could remove the unwanted operators from the view criteria item.
    The example below shows - how the unwanted operators namely BETWEEN & NOTBETWEEN could be removed.
    For more details, look into the following section 27.3.3 in the developer's guide:
    http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/web_search_bc.htm#CIHIDGGC
    Sample:
    <ViewCriteria
    Name="EmployeesVOByFirstNameOrLastName"
    ViewObjectName="model.views.EmployeesVO"
    Conjunction="AND">
    <Properties>
    <CustomProperties>
    <Property
    Name="displayOperators"
    Value="InAdvancedMode"/>
    <Property
    Name="autoExecute"
    Value="false"/>
    <Property
    Name="allowConjunctionOverride"
    Value="true"/>
    <Property
    Name="showInList"
    Value="true"/>
    <Property
    Name="mode"
    Value="Basic"/>
    </CustomProperties>
    </Properties>
    <ViewCriteriaRow
    Name="vcrow0"
    UpperColumns="1">
    <ViewCriteriaItem
    Name="FirstName"
    ViewAttribute="FirstName"
    Operator="CONTAINS"
    Conjunction="AND"
    Value=""
    Required="Optional">
    *<CompOper*
    Name="Category"
    ToDo="-1"
    Oper="BETWEEN"/>
    *<CompOper*
    Name="Category"
    ToDo="-1"
    Oper="NOTBETWEEN"/>
    </ViewCriteriaItem>
    <ViewCriteriaItem
    Name="LastName"
    ViewAttribute="LastName"
    Operator="CONTAINS"
    Conjunction="OR"
    Value=""
    Required="Optional"/>
    </ViewCriteriaRow>
    </ViewCriteria>
    Thanks,
    Navaneeth

  • Query form requires Logical operators and/or Quotes

    In ORACLE 9I Jdeveloper beta I used the BC4J JSP wizard to create a - Query Form. The query form looks nice and runs except I have to also include the logical operators (= > <) and Quotes. For example to query on the name Joe I have to enter it as ="JOE". If I use JOE it gives me a JSP error. The error message shows the generated Select statment with the where clause JOE but is missing the "=" and quotes.
    How do I hard code the "=" and quotes around strings so that the user doesn't have to?

    In ORACLE 9I Jdeveloper beta I used the BC4J JSP wizard to create a - Query Form. The query form looks nice and runs except I have to also include the logical operators (= > <) and Quotes. For example to query on the name Joe I have to enter it as ="JOE". If I use JOE it gives me a JSP error. The error message shows the generated Select statment with the where clause JOE but is missing the "=" and quotes.
    How do I hard code the "=" and quotes around strings so that the user doesn't have to?

  • Af:query 'Hiding Unwanted Operators in Advanced mode having blank selection

    Hi,
    This is regarding 'Hiding Unwanted Operators in Advanced mode of af:query Component', I have followed the post by Jobinesh (http://jobinesh.blogspot.com/2013/01/prart-2-hiding-unwanted-operators-in.html)
    The attribute is non-default attribute and when we add the attribute from 'Add Fields' section it will be having blank selection option even if I have added below two lines under 'ViewAttribute' tag.
    <CompOper Name="Name" ToDo="-1" Oper="ISBLANK" MinCardinality="0" MaxCardinality="0"/>
    <CompOper Name="Name" ToDo="-1" Oper="" MinCardinality="0" MaxCardinality="0"/>
    Kindly suggest:
    1. How to remove blank selection operator.
    2. How to set particular operator as default operator in XML.

  • Hide Operators select box in Query Panel Advanced mode

    Hl All,
    I need to Hide all operators in the select Dropdown in the View Query Panel Advanced mode.
    Please help me.
    Thanks,
    Balaji Mucheli.

    Hi Balaji,
    Use the below code for operator hide
         <CompOper Name="Equals" Oper="=" ToDo="-1"></CompOper>
        <CompOper Name="Does not Equal" Oper="&lt;&gt;" ToDo="-1"></CompOper>
        <CompOper Name="Less than" Oper="&lt;" ToDo="-1"></CompOper>
        <CompOper Name="Less than or equal to" Oper="&lt;=" ToDo="-1"></CompOper>
        <CompOper Name="Greater than" Oper="&gt;" ToDo="-1"></CompOper>
        <CompOper Name="Greater than or equal to" Oper="&gt;=" ToDo="-1"></CompOper>
        <CompOper Name="Name" Oper="BETWEEN" ToDo="-1"  MinCardinality="0"  MaxCardinality="0"/> 
        <CompOper Name="Name"  Oper="NOTBETWEEN"  ToDo="-1"  MinCardinality="0"  MaxCardinality="0"/>
        <CompOper Name="Name" Oper="ISBLANK" ToDo="-1"  MinCardinality="0"  MaxCardinality="0"/> 
        <CompOper Name="Name"  Oper="ISNOTBLANK"  ToDo="-1"  MinCardinality="0"  MaxCardinality="0"/>
    Thanks
    Prabhat

  • Query using BETWEEN/AND operators

    Im trying to query in forms using BETWEEN/AND operators. The field is for dates (YYYY) is stored in the DB as varchar (4). My code compiles but returns nothing...Any ideas of whats wrong...
    PROCEDURE YR_RANGE_SEARCH IS
    BEGIN
    IF :SEARCH.NRA_START IS NOT NULL
    AND :SEARCH.NRA_END IS NOT NULL THEN
    :Global.BUFFER_START := :SEARCH.NRA_STRT;
    :Global.BUFFER_END := :SEARCH.NRA_END;
    BEGIN
    SET_BLOCK_PROPERTY('NRHR', ONETIME_WHERE, 'NRHR.YEAR = ''' || 'BETWEEN' || :Global.BUFFER_START || 'AND' || :Global.BUFFER_END ||'''');
    GO_BLOCK('NRHR');
    EXECUTE_QUERY;
    END;
    END IF;
    END;

    check spaces in quoted text. i noticed that in your original query you had no spaces anywhere which made your ONETIME_WHERE resulting in something like NRHR.YEAR='BETWEEN2005AND2007' (if :Global.BUFFER_START=2005 and :Global.BUFFER_END=2007). For sure that always resulted in NULL value returned by the query;
    in my answer
    SET_BLOCK_PROPERTY('NRHR', ONETIME_WHERE, 'NRHR.YEAR BETWEEN '|| :Global.BUFFER_START || ' AND ' || :Global.BUFFER_END);
    there is a space after BETWEEN and space before and after AND. Be careful.

  • Updating Tool tip message of Query panel Operators

    I have a requirement to modify the tool tip message of Query panel operators. Currently the following messages are displayed when I hover over the 'CONTAINS' operators for the 'name' field in the query panel - "Operators for Name" & "Contains". I want to replace these messages with custom message. Please let me know if this possible. I understand that I can provide custom message for a 'Custom Operator' . But checking if there is a easier way of doing this.
    Any pointers will be appreciated.

    Hi,
    use the Resource Strings mentioned here http://docs.oracle.com/cd/E28280_01/apirefs.1111/e15862/toc.htm#query and look for how to skin these labels: http://docs.oracle.com/cd/E28280_01/web.1111/b31973/af_skin.htm#autoId10
    Frank

  • Logical operators in Oracle select query

    Hello all,
    Can i use logical operators in oracle select queries?
    for 1 and 0 =0 ; 1 or 0 =0
    if i have two fileds in a table COL1 have a value of 1010 and COL2 have a value of 0001.
    Is there any way to use select col1 or col2 from table? where or is a logical operator?
    Regards,

    Hi,
    NB wrote:
    Hello all,
    Can i use logical operators in oracle select queries?Sure; Oracle has the logical operators AND, NOT and OR. All the comparison operators, including >, >=, = !=, EXISTS, IN, IS NULL, LIKE and REGEXP_LIKE are really logical operators, since they return logical values. You can use them in SELECT statements, and other places, too.
    for 1 and 0 =0 ; 1 or 0 =0
    if i have two fileds in a table COL1 have a value of 1010 and COL2 have a value of 0001.It's unclear what you want. Maybe you'd be interested in the BITAND function:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/functions014.htm#sthref1080
    BITAND is the only logical function that I know of. Many other functions, especially numberical fucntions such as MOD, have applications in logic.
    Is there any way to use select col1 or col2 from table? where or is a logical operator?Whenever you have a question, please post a little sample data (CREATE TABLE and INSERT statements), and also post the results you want from that data.
    Explain how you get those results from that data.
    Always say which version of Oracle you're using.

  • Query with two spatial operators

    Hi,
    I need prepare query with sdo_any_interact and sdo_filter
    Following query doesn't work any ideas?
    SELECT ROWID, GEOMETRY, 'MVDEMO:L.MAJOR TOLL ROAD', null, 'null', -1, 'rule#0'
    FROM PARCELS P
    WHERE SDO_ANYINTERACT(P.GEOMETRY,
    (SELECT L.GEOMETRY
    FROM SHP_SIMPLYFIED L
    WHERE L.TASK = '4')) = 'TRUE'
    and MDSYS.SDO_FILTER(P.GEOMETRY
    , MDSYS.SDO_GEOMETRY(2003
    , 2180
    , NULL
    , MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3)
    , MDSYS.SDO_ORDINATE_ARRAY(482850, 236980, 510333, 248133))
    --, MDSYS.SDO_ORDINATE_ARRAY(:MVQBOXXL, :MVQBOXYL, :MVQBOXXH, :MVQBOXYH))
    , 'querytype=WINDOW') = 'TRUE'
    Kind regards,
    Tomek

    Hi Jack,
    Join - the same error:
    the error is
    ORA-00904: "MDSYS"."SDO_PQRY": invalid identifier
    00904. 00000 - "%s: invalid identifier"
    *Cause:
    *Action:
    Error at Line: 13 Column: 60
    TASK column - is not null, unique
    parcels are partitioned table (3 000 000 rows)
    i think this error is connected with partitoning
    in the first version i put any_interact into view with read only option
    select * from this view works fine but take a long time,
    next i build theme in MapBuider but preview return error (same), (MapBuilder buid query on view and add query_window filter to reduce number of objects)
    Thx,
    Tomek

  • Show lov in query panel for an attribute using = = or between operators

    When we use between, greater than, less than, greater than or equal to , less than or equal to in the view criteria
    On an attribute which has lov
    in query panel of UI the lov does not show up for that particular attribute
    How to show lov for an attribute in query panel when i am using the above operators

    Does the LOV show up in basic query state?
    http://blogs.oracle.com/shay/2011/01/dependent_lovs_in_an_afquery_c.html

Maybe you are looking for

  • Segunda via de nota fiscal, garantia e chave do office

    Bom dia! Preciso da segunda via da nota fiscal do meu notebook que comprei na Best Buy em Orlando. Também preciso da cópia da garantia e da chave de ativação do pacote office 2010 que veio no notebook. Como procedo? Atenciosamente, Olga.

  • Mac OS 10.4.11 and Upgrading

    Hi - I have a MacBook and it is operating on OS 10.4.11. Somehow I lost Firefox Mozilla and now I am unable to download either the current version or old version. Only problem is that my uni course is not compatible with Safari and they say to use Fi

  • Get the wage type, amount and cost center

    Dear Expert, Is there any FM to get the payroll result for each wage type, amount, and cost center allocation? Example, Employee Tom was in cost center A with wage type 1001 ($1000) in Jan. But in Feb payroll, we need to retro the cost center for emp

  • WD For ABAP : cl_wd_table  HELP?

    Hi:    I have a problem to solve about web dynpro for abap.    I create a table and the first column is a LINK_TO_BUTTON(Function LIKE BBS),if there are 6   rows  data ,when i click the link_to_button of 1 row in 6,I want to konw which row i have cli

  • Change keyboard on a MacBook Pro

    Hi there I currently live in Hong Kong and I'm thinking about buying a MacBook Pro here. Someday I will move back to Switzerland and I was wondering if it's possible to change the keyboard on a MacBook Pro so that I can write german umlaute with it a