Greater than operator in Hana

Hi, I have a quey inside a Xml File and I need to use the Comparasion Operator for "Greater than" in this way : >
Question: Does Hana Syntax support  > ?

Hi there,
Was '>' or '<' not working from XML? I used a > operator in a calculated column  and then exported the HANA model to see the XML file of it. It has something like this below:
<formula>IF(&quot;EMP NO &quot; >=3,&quot;EMPLOYEE NAME&quot;,&quot;GENDER&quot;)</formula>
Regards,
Krishna Tangudu

Similar Messages

  • Greater than operator for obiee analysis

    Hi ALL,
    Just want to ask if it is possible to use date for the greater than operator in creating obiee analysis?
    for example: I want to get months greater than January 2015 for specific measure.
    Thanks in advance

    but I'm using Oracle 9i r2
    The question is why greter than, lesser than, does not workWorks on 9.2.0.8:
    SQL> select * from v$version where rownum = 1
    BANNER                                                         
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    1 row selected.
    SQL> with mydata as
       select xmltype('<Values><Value>data1</Value><Value>data2</Value></Values>') MyXmlColumn from dual
    select * from mydata t where existsNode(t.MyXmlColumn, '/Values/Value') < 3
    MYXMLCOLUMN                                                              
    <Values>                                                                 
      <Value>data1</Value>                                                   
      <Value>data2</Value>                                                   
    </Values>                                                                
    1 row selected.

  • Greater Than &gt in Hana?

    Context:
    I have a Ms Sql Statement inside a xml file and I have a conditional with a "Greater Than" comparison, so because this within a XML File I can't use the regular syntax for "Greater Than" ( > ) then I use the (&gt;)
    Ms Sql Server Statement
    <Query ID="some_query">
    if ( DATEDIFF(day,@fechaVencimiento, getdate() ) &gt; 0  OR  @Consecutivo_Inicial &gt; @Consecutivo)
           begin
              set @Consecutivo= @Consecutivo_Inicial
              set @seReinicio = 2
           end
    </Query>
    Question:
    What would be the equivalent syntax for ( &gt; ) in Hana?
    Thanks in advance.
    Message was edited by: Tom Flanagan

    Hi there,
    Was '>' or '<' not working from XML? I used a > operator in a calculated column  and then exported the HANA model to see the XML file of it. It has something like this below:
    <formula>IF(&quot;EMP NO &quot; >=3,&quot;EMPLOYEE NAME&quot;,&quot;GENDER&quot;)</formula>
    Regards,
    Krishna Tangudu

  • Greater than operator for date in obiee analysis

    Hi all,
    I just need your help. is it possible to use the greater than or less than operator (in filter) for date in creating analysis?
    FOr example: I need to have the greater than months from "January 2015" for specific measure.
    Thanks!

    Somehow the person records for this person have become corrupted. Have you any idea how that might have happened? Options:
    1) Someone or some program has issued a direct table update on per_all_people_f
    2) Someone has used Help > Diagnostics > Examine to modify the data
    3) An Oracle bug. This one is unlikely but could happen if using an unusual form (Shared Person Form, for example) and perform a weird combination of actions/keystrokes. But you'd need to be able to reproduce it if you want Oracle to fix it.
    If you're support contract is invalid or you don't have a support contract your options are limited. You can either:
    a) Bring your patch level up-to-date and then raise an SR. If Oracle agree to provide a script to fix it they'll probably just do direct table updates to resolve this record.
    b) Fix this yourself using direct table updates. This obviously isn't supported either. If you do this, make sure you know what you're doing and get it 100% right first time. BE VERY CAREFUL!
    Obviously I strongly recommend option b.

  • Xpath query using greater than operator

    I'm trying to evaluate some xml to determine if it matches some criterium.
    MyXmlColumns contains the following kind of data "<Values><Value>data1</Value><Value>data2</Value><Values>"
    When I execute the following query I get zero rows returned when it should match some rows containing this data.
    select * from mydata
    where existsNode(MyXmlColumn, '/Values/Value[. > "data1"]') = 1
    The question is why greter than, lesser than, does not work, and if there is any alternative.
    If I use equals operator, or greater than but using a number it works.
    I know that I can use XmlExists function but I'm using Oracle 9i r2 so it's not an option.
    Thanks in advance for any suggestion.

    but I'm using Oracle 9i r2
    The question is why greter than, lesser than, does not workWorks on 9.2.0.8:
    SQL> select * from v$version where rownum = 1
    BANNER                                                         
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    1 row selected.
    SQL> with mydata as
       select xmltype('<Values><Value>data1</Value><Value>data2</Value></Values>') MyXmlColumn from dual
    select * from mydata t where existsNode(t.MyXmlColumn, '/Values/Value') < 3
    MYXMLCOLUMN                                                              
    <Values>                                                                 
      <Value>data1</Value>                                                   
      <Value>data2</Value>                                                   
    </Values>                                                                
    1 row selected.

  • Greater than operator in SQL

    Hi friends,
    A table has 2 colums A and B.How i can return a flag ,say 1 if A is greater than B or 0 if A is less than B,by using SQL.
    Can any one help me out.
    thanks and regards,
    Ajith

    select a,b,case when a > b then 1
                    when a=b   then 0
                    else -1
               end FLAG
    from table;                                                                                                                                                                                                                                                                               

  • Date Greater Than Operator

    I am comparing two date fields from two tables. Both are in DATE format. The dates look like this: 22-Apr-2006 07:00:10 AM and 01-Jun-2007 12:00:00 AM. I am adding this statement to a WHERE clause:
    and vendors.vend_obsolete_date > document_xref.acceptance_date;
    In this particualr case, I should get no result because the 1st date came before the 2nd date. But when I run my program, it seems to be ignoring my > statement. Is using a greater than sign the proper syntax to compare if the 1st date field is bigger (came after) another?
    Thanks!

    Greater than works on DATE columns, no problem. A simple test confirms it.
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Jul 9 17:50:52 2007
    select 'oops, something is wrong' as result
    from   dual
    where
      to_date( '22-Apr-2006 07:00:10 AM', 'dd-Mon-yyyy hh12:mi:ss AM' )
      > to_date( '01-Jun-2007 12:00:00 AM', 'dd-Mon-yyyy hh12:mi:ss AM' )
    no rows selectedThere must be something else about your query or data that's causing the anomaly.
    Joe Fuda
    SQL Snippets

  • Less Than operator not working, Greater Than operator works comparing dates

    I need to compare dates to conditionally display a row. If the DateDueJulian_ID5<= AsOfDate_ID47 display otherwise don't. I get all rows but if I reverse the logic >= the condition works and only displays the one matching row.
    I am using the Template Builder 10.1.3.4.1 and WORD 2007.
    Any help is appreciated!
    Thanks
    XML Source:
    <Header_Section_S3>
    <Delinquency_Report_ID225>DELINQUENCY NOTICE</Delinquency_Report_ID225>
    <VersionName_ID270>0001</VersionName_ID270>
    <Report_or_Video_Title_ID53></Report_or_Video_Title_ID53>
    <Remit_To_Text_ID68>Remit To:</Remit_To_Text_ID68>
    <RemitToAddressLine1_ID2>XXXXX</RemitToAddressLine1_ID2>
    <XX_XX_XX_ID259>2010-08-25</XX_XX_XX_ID259>
    <Date__ID258>Date</Date__ID258>
    <RemitToAddressLine2_ID5></RemitToAddressLine2_ID5>
    <RemitToAddressLine3_ID8></RemitToAddressLine3_ID8>
    <As_of_Date__ID46>As of Date</As_of_Date__ID46>
    <AsOfDate_ID47>2007-11-29</AsOfDate_ID47>
    <A_R_Delinquency_Notice_Detail_Join_S2>
    <DocVoucherInvoiceE_ID1>1897265</DocVoucherInvoiceE_ID1>
    <DateInvoiceJ_ID3>2007-10-11</DateInvoiceJ_ID3>
    <DateDueJulian_ID5>2007-12-10</DateDueJulian_ID5>
    <NameRemark_ID7></NameRemark_ID7>
    <AmountOpen_ID11></AmountOpen_ID11>
    <AddressNumber_ID17></AddressNumber_ID17>
    <UniqueKeyIDInternal_ID19></UniqueKeyIDInternal_ID19>
    <KAV_CustomerPONumber_ID23></KAV_CustomerPONumber_ID23>
    </A_R_Delinquency_Notice_Detail_Join_S2>
    <A_R_Delinquency_Notice_Detail_Join_S2>
    <DocVoucherInvoiceE_ID1>1897265</DocVoucherInvoiceE_ID1>
    <DateInvoiceJ_ID3>2007-10-11</DateInvoiceJ_ID3>
    <DateDueJulian_ID5>2007-11-10</DateDueJulian_ID5>
    <NameRemark_ID7></NameRemark_ID7>
    <AmountOpen_ID11></AmountOpen_ID11>
    <AddressNumber_ID17></AddressNumber_ID17>
    <UniqueKeyIDInternal_ID19></UniqueKeyIDInternal_ID19>
    <KAV_CustomerPONumber_ID23></KAV_CustomerPONumber_ID23>
    </A_R_Delinquency_Notice_Detail_Join_S2>
    RTF:
    <?for-each:Header_Section_S3?>
    <?if:DateDueJulian_ID5 <= AsOfDate_ID47?>
    <?DocVoucherInvoiceE_ID1?>
    <?DateDueJulian_ID5?>
    <?AsOfDate_ID47?>
    <?end if?>
    <?end for-each?>

    Found the solution! Use Date_Diff.
    <?if:xdoxslt:date_diff('d',DateDueJulian_ID5,AsOfDate_ID47,$_XDOLOCALE,$_XDOTIMEZONE)>=0?>

  • CcBPM - switch with a condition (greater than) in XI 7.0

    Hello.
    I have this BPM that must have a switch condition like:
    IF <field xpto> of the received message is greater than 0.
      branch 1.
    ELSE.
      branch 2.
    ENDIF.
    In XI 7.1 is easy, because the condition editor has logical expressions like >, <, etc ...
    In XI 7.0 we don't have that, but in SAP help I read:
    You want to formulate the following condition: The booking number (BookingNumber) is greater than 0100.
    Since the greater than (>) operator is not available in the condition editor, you can use the following solution: You define the relevant logical expression in the expression editor by means of an XPath predicate, and assign it to a node element. Using the condition editor you then just query the existence of this node element (by using the existence operator (EX)).
    This means you first create the following expression in the expression editor:
    /FlightBookingOrderConfirmation [BookingID/BookingNumber > 0100]
    Using the condition editor, you then formulate the following condition:
    (/FlightBookingOrderConfirmation [BookingID/BookingNumber > 0100] EX)
    The meaning of this condition is as follows:
    A node element FlightBookingOrderConfirmation exists, to which the following applies: The content of the subelement BookingID/BookingNumber is greater than 0100.
    In my example, the xpath for the variable is:
    /p4:EventMessage/p4:MessageBody/p5:Order/p5:Totals/p5:TotalGrossAmount
    But i'm not getting how to use the bracket condition.
    Regards,
    Valter Oliveira.
    Edited by: Valter Oliveira on Mar 10, 2009 6:04 PM

    Hi, valter:
    Existence operator (EX) is to check if the node exist in your source message or not.
    It is used in Conditional Editor, mostly in the conditional routing in ID.
    IF <field xpto> of the received message is greater than 0.
    branch 1.
    ELSE.
    branch 2.
    ENDIF.
    If your branch 1 or 2 is a send step, then you can use the conditional routing to substitute BPM logic.
    otherwise, you can not use conditon editor to replace your BPM logics.
    Regards.
    Liang

  • ROWNUM with Greater than symbol..!

    Hi
    Can any one explain why ">" greater than operator not working with ROWNUM.
    FOR EXAMPLE:
    SELECT * FROM EMP where rownum > 2;
    But the less than operator is working.
    SELECT * FROM EMP where rownum < 2;
    Please clarify this.
    Thanks in advance.
    Regards
    Sathya

    Hello,
    " … since something like a rownumber actually doesn't exist …"I’m pretty sure the OP is referring to the pseudo-column ROWNUM, which generated automatically by the db systems, for every query. This value, starting with 1, is being attached to every record which satisfy the where clause condition. Hence, for the first record to be assigned a rownum, the where clause must consider rownum=1 as a valid condition.
    " Rownum needs to be "generated" in a subquery first "I don't see any problem with the following code (with no subquery):
    select * from emp
    where rownum <=3;This query will display the first 3 fetched (not sorted) records from the emp table.
    Regards,
    Arie.

  • Query to select values greater than, where AS clause is used

    Oracle 10g
    Requesting your help in writing the query correctly.
    I have the following 2 tables. The AddProjectPhase and AddProject tables. It is many to many relationship. Each project can have a predefined set of 4 different phases under it. Each phase has a start date and an end date. I am writing a report to get the phases which have a duration greater than, for example, 3 months.
    The query below is working fine to just display the list of all the phases along with the duration of each phase. I am not able to modify it to select the phases which have a duration, for example, 3 or more months.
    CREATE TABLE  "ADDPROJECT"
       (     "VERSIONNO" NUMBER(*,0),
         "PROJID" VARCHAR2(20),
         "PROJNAME" VARCHAR2(60),
         "PROJSTARTDATE" DATE,
         "PROJSTATUS" VARCHAR2(20),
         "PROJENDDATE" DATE,
         "PROJENDTYPE" VARCHAR2(20),
         "PROJENDREASON" VARCHAR2(1000),
         "UCPROJECTMANAGER" VARCHAR2(20),
         "FROMDATE" DATE,
         "TODATE" DATE,
         "SRCHFIELD" VARCHAR2(20),
         "OPERATOR" VARCHAR2(20),
         "PARENTPROJID" VARCHAR2(20),
         "PROJHIDDENDATE" VARCHAR2(20),
          CONSTRAINT "PK_B36" PRIMARY KEY ("PROJID", "PROJHIDDENDATE") ENABLE
    CREATE TABLE  "ADDPROJECTPHASE"
       (     "VERSIONNO" NUMBER(*,0),
         "PROJPHASEID" NUMBER(9,0),
         "PHASESTARTDATE" DATE,
         "PHASEENDDATE" DATE,
         "RRDATE" DATE,
         "PHASENAME" VARCHAR2(30),
         "PROJPHASESTATUS" VARCHAR2(20),
         "PROJID" VARCHAR2(20),
         "OPERATOR" VARCHAR2(20),
         "FROMDATE" DATE,
         "TODATE" DATE,
         "SRCHFIELD" VARCHAR2(20),
         "REVIEWCOMMENTS" VARCHAR2(1000),
         "PROJHIDDENDATE" VARCHAR2(20),
         "ISUEVALUATION" NUMBER(1,0),
         "SOLUTIONINGTEAMINVOLVEMENT" NUMBER(1,0),
         "ISUNAME" VARCHAR2(20),
          CONSTRAINT "PK_A63" PRIMARY KEY ("PROJPHASEID") ENABLE
       )Below is the query to display the list of all the phases along with the duration of each phase which is working fine.
    SELECT pp.phaseName "phasename",
    pp.phaseStartDate "phaseStartDate",
    pp.phaseEndDate "phaseEndDate",
    pp.projPhaseStatus "projPhaseStatus",
    ap.projID "projID",
    ap.projName "projName",
    ap.projHiddenDate "projHiddenDate",
    ap.projStartDate "projStartDate",
    CASE
        WHEN pp.phaseEndDate IS NOT NULL
        THEN MONTHS_BETWEEN(1+pp.phaseEndDate,pp.phaseStartDate)
        WHEN pp.phaseEndDate IS NULL
        THEN MONTHS_BETWEEN(1+sysDate,pp.phaseStartDate)
        ELSE null
    END "phaseMonths"
    FROM AddProjectPhase pp, AddProject ap
    WHERE ap.projID = pp.projID
    AND ap.projHiddenDate = pp.projHiddenDate
    ORDER BY ap.projIDHowever the modified query shown below to select all the phases greater than, for example, 3 months, is resulting in
    ORA-00904: "PHASEMONTHS": invalid identifier SELECT pp.phaseName, pp.phaseStartDate, pp.phaseEndDate
    FROM AddProjectPhase pp, AddProject ap
    WHERE ap.projID = pp.projID
    AND ap.projHiddenDate = pp.projHiddenDate
    AND PhaseMonths IN
    (SELECT
    (CASE
    WHEN pp.phaseEndDate IS NOT NULL
    THEN MONTHS_BETWEEN(1+pp.phaseEndDate,pp.phaseStartDate)
    WHEN pp.phaseEndDate IS NULL
    THEN MONTHS_BETWEEN(1+sysDate,pp.phaseStartDate)
    ELSE null
    END) AS PhaseMonths
    FROM AddProjectPhase pp, AddProject ap
    WHERE ap.projID = pp.projID
    AND ap.projHiddenDate = pp.projHiddenDate)
    ORDER BY ap.projID

    Looking for this?
    select *
       from (
            SELECT pp.phaseName "phasename"
              , pp.phaseStartDate "phaseStartDate"
              , pp.phaseEndDate "phaseEndDate"
              , pp.projPhaseStatus "projPhaseStatus"
              , ap.projID "projID"
              , ap.projName "projName"
              , ap.projHiddenDate "projHiddenDate"
              , ap.projStartDate "projStartDate"
              , CASE WHEN pp.phaseEndDate IS NOT NULL THEN MONTHS_BETWEEN(1+pp.phaseEndDate,pp.phaseStartDate)
                     WHEN pp.phaseEndDate IS NULL     THEN MONTHS_BETWEEN(1+sysDate,pp.phaseStartDate)
                     ELSE null
                END "phaseMonths"
              FROM AddProjectPhase pp, AddProject ap
             WHERE ap.projID = pp.projID
               AND ap.projHiddenDate = pp.projHiddenDate
             ORDER
                BY ap.projID
      where "phaseMonths" >= 3

  • Storage bin Capacity utilization is greater than 100%

    Hi,
    Via LS03N, I can found that some capacity utilization is greater than 100%, this must be incorrect, what's the reason? is there any report to update the capacity utilization for storage bin?
    Kindly please advise.
    Thanks

    For the capacity checks, the remaining capacities or the used weight in the storage bin master data are updated with every putaway or picking. If you change the inspection method in the current operations or you change capacity or weight data of materials or storage unit types, you then need to make a comparison of the data. You can make this comparison with report RLS10200. First read the documentation before you start the report.

  • Auto adjustment of page orientation causes printing issues with documents that have a page width greater than its page height.

    Hi,
    Since an upgrade from Word 2003 to Word 2010, we are experiencing printing issues with certain
    documents that have a page width greater than its page height.
    In Word 2003, it was no problem to set the page width greater than the page height while setting the page orientation to "portrait".
    In Word 2010, this seems impossible: despite leaving the page orientation to "portrait", if one changes the page width/height as stated,
    Word 2010 automatically adjusts the orientation to "landscape". Resetting the orientation to "portrait" will flip the page's width/heigth settings.
    This behaviour causes printing problems: the page prints out 90° rotated.
    I do not believe this is a printer driver issue: I tried several different printer drivers, and all give the same (bad) result. Setting the printer driver's page orientation settings (before printing) makes no difference, as
    Word 2010 seems to force the page orientation settings.
    Inserting the documents 90° rotated is not an option, since it causes problems with the printing margins.
    This is very annoying, since we have to print official documents of a municipality (driver's licences).
    Is there a workaround for this issue?
    Regards,
    Laurent Grandgaignage
    Sysadmin Gemeentebestuur Stabroek, Belgium

    Hi
    Thank you for using
    Microsoft Office for IT Professionals Forums.
    From your description, we can follow these steps to test this issue
    Step 1: Repair Office 2010
    1.      
    Click
    Start, and then click Control Panel.
    2.      
    Click
    Programs and Features.
    3.      
    Click the
    Office 2010 program that you want to repair, and then click
    Change.
    4.      
    Click
    Repair, and then click Continue. You might need to restart your computer after the repair is complete.
    Step 2:
    Rename the global template (Normal.dotm)Follow the steps for the operating system that you are using:
    Windows Vista and Windows 7
    a)      
    Exit Word 2010
    b)      
    Click
    Start.
    c)       
    In the
    Start Search box, type the following text, and then press
    ENTER:
    1.      
    %userprofile%\appdata\roaming\microsoft\templates
    d)      
    Right-click
    Normal.dotm, and then click Rename.
    e)      
    Type
    Oldword.old, and then press ENTER.
    Microsoft Windows XP
    a)      
    Exit Word 2010
    b)      
    Click
    Start, and then click Run.
    c)       
    In the
    Open box, type the following text, and then press ENTER:
    %userprofile%\Application Data\Microsoft\Templates
    d)      
    Right-click
    Normal.dotm, and then click Rename.
    e)      
    Type
    Oldword.old, and then press ENTER.
    f)       
    Close Windows Explorer.
    How to troubleshoot print failures in Word 2010, Word 2007, and Word 2003
    http://support.microsoft.com/kb/826845
    Please take your time to try the suggestions and let me know the results at your earliest convenience. If anything is unclear or if there is anything
    I can do for you, please feel free to let me know.
    Hope that helps.
    Sincerely
    William Zhou CHNPlease remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Trying to do date field greater than a specified date in condition editor

    Hi All,
    I am trying to build the XML predicate in the expression editor to check that the posting date sent is greater than a specified date to determine the reciever. I can get it to validate posting date is = to specified date, but when I change the = to > it fails to properly determine the receiver, when I send a valid document.
    Below is the expression build
    (/p1:ServiceAcknowledgementConfirmation/ServiceAcknowledgement[CreationDateTime>'2007-02-03'] EX )
    has anyone done this type of check. I have it set as a date type for the expression.
    Regards,
    Chris

    Hey all,
    I tried >= 2007-02-04 and sent in that exact date. It failed. I removed > so that it is just = 2007-02-04 and it was successful. So, is >= an allowable operator?
    Thanks,
    Chris

  • Temp files greater than 2GB

    While running an OBIEE report, I receive the following error:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46073] Operation 'stat()' on file '/u02/OracleBIData/tmp/nQS_28056_15671_77250638.TMP' failed with error: (75) . (HY000)
    The problem seems to be that the TEMP file created by the query is greater than 2 GB.
    Is there a way within OBIEE to bypass the 2 GB file size limitation of 32-bit servers (Windows/LINUX)?

    John - I don't understand how this is a cache issue. The file being created is a TEMP file in the /OracleBI_Data/tmp directory. What is the relationship between the TEMP directory and cache?
    My DATA_STORAGE_PATHS is currently set at 4 GB.
    By the way, I have spent a lot of time reading your OBIEE blog, and have found it to be extremely helpful.

Maybe you are looking for

  • Regrd the data packet size

    Hi i have two questions 1) where can i set the data packet size in BW and R3 and also in BI how and where can we set . 2)by what method/logic we will select the key fields in dso. ex: i have 5 tables in the sourse and each table will have primary key

  • How do you unlock your phone once its been disabled?

    I forgot my code to unlock my phone, and now it is disabled. When I plug it into iTunes it tells me to enter the code, which I don't remember. What do I do?

  • How could this be achieved

    Hey everyone, I have information stored in side a file, it is first stored in arrays like this: String[] cars = {"ford", "ford", "mini"} int[] car_id = {101, 102, 103} It is then written to a file. I would like to make a record or my own type of some

  • Problem with opening browser from Java app.

    Hi guys, I'm not sure if this is the right place to post this, so please excuse me if I'm wrong. I'm trying to open an html page (it's a help file) from a Java application. I'm currently using java.awt.Desktop.     browse(URI uri); which gets the job

  • How to increase field's number when update

    What value should I set when I want to make some field increase , such as "UPDATE table SET field = field + 1";