Alternative of Between Operator

BETWEEN Operator basically follows (>= AND <=) Logic
I need to implement (> and <=) condition on some specific range data
Remember: My range is grouped by some products
what should i do???

faisalkyo wrote:
BETWEEN Operator basically follows (>= AND <=) Logic
I need to implement (> and <=) condition on some specific range data
Remember: My range is grouped by some productsAnd? What is wrong with using (> and <=) ?
what should i do???Have some coffee?
Or do you perceive there is some problem? If so, how about explaining and demonstrating the problem?

Similar Messages

  • Error while using between operator with sql stmts in obiee 11g analytics

    Hi All,
    when I try to use between operator with two select queries in OBIEE 11g analytics, I'm getting the below error:
    Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
    Location: saw.views.evc.activate, saw.httpserver.processrequest, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool.socketrpcserver, saw.threads
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 27002] Near <select>: Syntax error [nQSError: 26012] . (HY000)
    can anyone help me out in resolving this issue.

    Hi All,
    Thank u all for ur replies, but I dint the exact solution for what I'm searching for.
    If I use the condition as
    "WHERE "Workforce Budget"."Used Budget Amount" BETWEEN MAX("Workforce Budget"."Total Eligible Salaries") AND MAX("Workforce Budget"."Published Worksheet Budget Amount"",
    all the data will be grouped with the two columns which I'm considering in the condition.
    my actual requirement with this query is to get the required date from a table to generate the report either as daily or weekly or monthly report. If I use repository variables, variables are not getting refreshed until I regenerate the server(which I should not do in my project). Hence I have created a table to hold weekly start and end dates and monthly start and end dates to pass the value to the actual report using between operator.
    please could anyone help me on this, my release date is fast approaching.

  • Difference in between operator in oracle 8i and 9i version

    Is their any difference between the functioning of Between operator in 8i and 9i?

    I agree that there should be no differences in behavior of the between operator from version 8.1 to 9.2. If you can run the same query with the same data on the two versions and get different results then you would need to look for version specific, possibly platform specific, bugs on metalink.
    HTH -- Mark D Powell --

  • How to use BETWEEN Operator in physical layer in OBIEE 11g

    Hi Experts,
    How do I do the BETWEEN Operator functionality in Physical layer if my requirements is like this?
    TABLE_1.COLUMN_1 = TABLE_2 is between COLUMN_2 and COLUMN_3
    Below is the syntax for BETWEEN Operator function when I am trying to insert them.
    <<expression>> BETWEEN <<Upper Bound>> AND <<Lower Bound>>
    Thanks,
    Edited by: OBIEE/BIP Forumer on Nov 3, 2012 11:37 PM

    Below is an example diagram, as you can see, FACT TABLE have a join (an arrow one) towards TABLE_1 and TABLE_3. AS for the TABLE_3, this table is the one which I implement with the BETWEEN Operators function in Physical Layer. Also, the arrow in FACT TABLE and TABLE_3 is a red one with no arrow head line.
    TABLE_2
    ^
    l
    l
    l
    FACT TABLE ---------> TABLE_1
    l
    l
    l
    TABLE_3
    Edited by: OBIEE/BIP Forumer on Nov 4, 2012 2:33 AM

  • XML Document Format for JDBC Receiver(Between operation)

    Hello everybody,
    is there a way to use a BETWEEN operation for the key in a SELECT XML document format????????, I need to filter in the Where for different Statements in teh strcuture as BETWEEN, thanks in advance.
    Regards,
    Julio

    http://help.sap.com/saphelp_nw70/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    Not sure but Check the option of
    <key1>
         <col2 compareOperation=u201DLTu201D>val2old</col2>
         <col2 compareOperation=u201DGTu201D>val2old</col2>
    </key1>
    Thanks,
    Beena.

  • What's the diff. between Operating Concern & Controlling Area?

    Dear Experts,
    Can some body tell me about the difference between Operating Concern & Controlling Area?
    how these 2 are defined?
    what is the logic to be followed while defining the CO-Org Structure?
    regards,
    shashi

    HI,
    see
    http://help.sap.com/saphelp_erp60/helpdata/en/02/30793485231774e10000009b38f83b/frameset.htm
    within this link check "organization in controlling" and there the docu for operating concern and controlling area.
    Best regards, Christian

  • Query panel between operator issue

    Hi,
    I'm using Jdeveloper 11.1.2.3.0.
    I have a view criteria with Equal to operator for employee id, selected Show Operator as always.
    Dropped it as a Query Panel with Table on a jsf page.
    On the query panel, selected operator as Between. When i enter From Field value in the query panel and click on Search, entire query is executing and estimated row count on the vo is showing the total number of records in the VO and then throwing an error Attribute Employee Id is required.
    How can i stop executing the query or how can i populate To field value when From field value is entered?
    As I have used Equal to while defining the VC, i provided the bind variable as pEmpId. When i use Between operator and entered both values, to field value is going to vc_temp_1 variable.
    How can i populate value into this at run time.
    Thanks,
    Vinod

    Maybe you can try to reset QueryModel, something like this:
    QueryModel queryModel = queryComponent.getModel(); 
    QueryDescriptor queryDescriptor = queryComponent.getValue(); 
    queryModel.reset(queryDescriptor); 
    queryComponent.refresh(FacesContext.getCurrentInstance());
    AdfFacesContext.getCurrentInstance().addPartialTarget(queryComponent);Sorry, I don't have any more ideas :(
    Dario

  • Between operator for group by date in Apex Interactive Reports

    Hi,
    In the interactive reports filter, i couldn't find the 'between' operator for date field (got a 'group by date' in my sql query (source). I am just wondering, Is it beacuse of the group by date clause?. Is there any way to show the 'between' operator in the interactive reports filter.
    Thanks

    I just opened an existing IR style report, went to actions, filter, selected a date column and found between at the bottom of the list of values.. Are you sure the date you are trying to filter on is a true date column?
    Thank you,
    Tony Miller
    Webster, TX
    What if you really were stalking a paranoid schizophrenic... Would they know?
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Between operator

    Hi
    We used between operator for varchar2 column.it is caused any performance problem n query execution.
    My sql statement is AND gcc_c.segment3 BETWEEN '&&3' AND '&&4'
    AND gcc_c.segment4 BETWEEN '&&5' AND '&&6'
    where segment3 and segment4 as varchar2 columns.now program is running some times very fast and some times take more hours to execute the sql satement.
    Plz give any one solutions.how to write the between operator for varchar2 columns.
    Thank's

    Is there any correlation between the range between the two values specified and the time it takes the query to execute?
    For instance one might expect this
    select *
    from big_table
    where col23 between 'BBB' and 'XXX'
    /to take longer to execute than this...
    select *
    from big_table
    where col23 between 'MMM' and 'MNO'
    /In fact, you might well want a completely different execution for the first case and the second case (full table scan, preferably with parallel query VS indexed range scan).
    Cheers, APC
    blog: http://radiofreetooting.blogspot.com

  • Between operator is taking as = and = in physical query

    Hi,
    i am implementing filter in obiee as follows,
    calendar date between 01/01/2010 and 01/01/2010
    or
    calendar date between 01/01/2009 and 01/01/2009
    when i executed the query it is showing the above logic in obiee logical query,where as in physical query it is taking as
    (T1233290."CALENDAR_DATE" >= DATE '2009-01-01' or T1233290."CALENDAR_DATE" >= DATE '2010-01-01') and (T1233290."CALENDAR_DATE" >= DATE '2009-01-01' or T1233290."CALENDAR_DATE" <= DATE '2010-01-01') and (T1233290."CALENDAR_DATE" >= DATE '2010-01-01' or T1233290."CALENDAR_DATE" <= DATE '2009-01-01') and (T1233290."CALENDAR_DATE" <= DATE '2009-01-01' or T1233290."CALENDAR_DATE" <= DATE '2010-01-01') )
    how to get the between operator in physical query.
    please help me out in this.

    Why are u using the same dates in between option ?

  • Between Operator in physical join

    Hello,
    Can we use between operator in physical join. We did that, its successfully checking in, but when we re-open the join, its show in RED color.
    So, got doubt, can we use between?
    and we have another error
    "No fact table exists at the requested level of detail"; what does this error mean
    Waiting for reply...
    Regards
    Kiran

    Can we use between operator in physical join. We did that, its successfully checking in, but when we re-open the join, its show in RED color.
    So, got doubt, can we use between?When you checkout the rpd object in online mode it would display in red, this is not an error.
    "No fact table exists at the requested level of detail"; what does this error meanThis error usually happens if you have not mapped the content level correctly in the logical table source.
    Rgds,
    Dpka

  • BETWEEN operator or = and =

    From a performance point of view, Which is better? BETWEEN operator or >= and <= . And why?

    A simple test..
    SQL> explain plan for
      2   select * from emp
      3   where sal between 1000 and 3000;
    Explained.
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    Plan hash value: 3956160932
    | Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |      |     9 |   333 |     3   (0)| 00:00:01 |
    |*  1 |  TABLE ACCESS FULL| EMP  |     9 |   333 |     3   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
    PLAN_TABLE_OUTPUT
       1 - filter("SAL"<=3000 AND "SAL">=1000)
    13 rows selected.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Difference between operational systems datamodelling & datawarehouse model

    »     An understanding of the differences between operational systems data modeling and data warehouse data modeling.

    Hi,
        While in a OLTP you  have data tables free of redundance and ready for transactions meaning writing and reading few records often, in an OLAP-system you need to read a lot of data for every query you do on a database. Often in an OLAP-system you aggregate these amounts of data.
    Therefore you use another principle for these database scheme. This is called star schema. This means that you have one central table (called fact table) which holds the key figures and have keys to another tables with characteristics. These other tables are called dimension tables. They hold combinations of the characteristics
    I hope the following links may help you to get some more Idea.
    Re: OLAP AND OLTP
    Re: R/3 and BW reports
    Re: BW benefits
    Regards,
    Haritha..

  • Alternative ' ' (greater then) operator

    Hi,
    i want alternative for '>' than operator. which function as the same '>' operation for example: date_col > :1
    i am working with BPEL DB adapter pure sql

    hi,
    this condition is fine working
    the below is the problem i am facing anyone please help me
    Select NVL(to_char(ow_org_id),'Not Available') organizationId, count(rep_num)
    From xxx_table
    Where to_date(create_date) > to_date(?)
    Group by own_org_id, rep_num
    i have created bpel process and trying to get output based on the creation date. the process is based on Httpbinding where parameters are given from WSDL url as
    http://hostname:port/httpbinding/default/processname?&repDate=<date>
    i am creating the service with DB adapter(custom sql) output is empty xml
    i can get the output if i run the query in sqldeveloper can anyone help me in this regard
    created the httpbindings based on this link
    http://blogs.oracle.com/reynolds/2005/09/invoking_bpel_from_an_html_for.html

  • Error: Overloading ambiguity between "operator+(const RWCString&, const RWC

    We always get the following error when we are compiling our source codes:
    Error: Overloading ambiguity between "operator+(const RWCString&, const RWCString&)" and "RWCString::operator const char*() const"
    Our compiler is Workshop 6 update 1. We can compile the same source codes in Workshop 5.0. We found out that we can solve this problem if we explicitly cast the const strings to RWCString. However, since we are building on previous source codes and modules, we find this solution close to impossible. Is there other solution for this problem? Are there any patch which we can use?
    Thanks!

    The code really does have an ambiguity in it.
    The RWCString class operator() member function, which you invoke as str1(...) with an integer value, returns a char. You then have the operation
            RWCString + char
    The RWCString class does not have an associated operator+ that takes a RWCString and a character. The compiler could convert the string to a char* via "operator const char*" and add the value of the char to it, or it could convert the char to a RWCString via a constructor and use the operator+ that takes two RCWCstrings.
    The compiler has no way to prefer one choice over the other.
    You can write an explicit cast, or you can store the result of the str1(...) operation in an explicit RWCString temp, or you could use the += operator:
    str2 = str2 + RWCString(str1(str1.length()-1));
    RWCString temp = str1(str1.length()-1);
    str2 = str2 + temp;
    str2 += str1(str1.length()-1);
    BTW, this problem illustrates why it's usually a bad idea to have multiple constructors and also type conversion operators in a class. It's hard to write code that doesn't lead to ambiguities.

Maybe you are looking for