Where to update the query

Hi All,
I am new to webadi. Pls do the needful to resolve my problem. My clinet gave letter names and he told me that, letter are retriving incorrrect results. So, change the query to get the proper details. So, Can anobody suggest what i need to do like where to change the qurery and how to find integrator.?
Thanks in advance.
Hasini.

Hi Mohan,
First you may want to check if this error is surfaces in other environments as well or this is the only environment where you are seeing this.
If it does not work only in this environemnt you may want to have a look at the counters table and check if all counter are good.
also if any of the values are hardcoded you may wnat to check if they conflict with something in the UCM.
also cehck ther permission of ther service that you are calling.I hope you are calling CHECKIN_UNIVERSAL.
hope it helps.
cheers,
swapnil

Similar Messages

  • How to update the Query of an existing WEBI document's dataprovider, through the RESTful Web service SDK.

    Hi,
    I am trying to update the Query of an existing WEBI document's dataprovider, through the RESTful Web service SDK.
    For this, first i will get the Dataprovider information,
    Example:
    URI: http://localhost:6405/biprws/raylight/v1/documents/11111/dataproviders/DP0
    Expected result;
    <dataprovider>
         <id>DP0</id>
         <name>Query 1</name>
         <dataSourceId>1234</dataSourceId>
         <updated>2014-04-18T11:55:21.000-08:00</updated>
         <duration>1</duration>
         <isPartial>false</isPartial>
         <rowCount>113</rowCount>
         <flowCount>11</flowCount>
         <dictionary>
              <expression qualification="Dimension" dataType="String">
                   <id>DP0.DO1</id>
                    <name>EmpID</name>
                   <description>Employee ID.</description>
                    <dataSourceObjectId>DS0.DO1</dataSourceObjectId>
              </expression>
              <expression qualification="Dimension" dataType="String">
                   <id>DP0.DO2</id>
                   <name>EmpName</name>
                   <description>Employee Name.</description>
                   <dataSourceObjectId>DS0.DO2</dataSourceObjectId>
              </expression>
         </dictionary>
         <query>SELECT Employee.EmpID, Employee.EmpName FROM Employee</query>
    </dataprovider>
    Then Changing the above dataprovider's Query to some thing like below,
    <query>SELECT Employee.EmpID, Employee.EmpName FROM Employee where Upper(Employee.EmpName)='RAJ'</query>
    Please let me know the RESTful Call required to do this.
    Thanks in advance.
    Thanks,
    Mahendra.

    FYI, the output of this call returns something like:
    <?xml version="1.0" encoding="UTF-8"?> 
    <queryplan>
        <union>
            <fullOuterJoin>
                <statement index="1">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), count( distinct SALES.inv_id) FROM SALES GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
                <statement index="2">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), sum(INVOICE_LINE.nb_guests) FROM SALES, INVOICE_LINE, SERVICE_LINE, SERVICE WHERE ( SALES.INV_ID=INVOICE_LINE.INV_ID ) AND ( INVOICE_LINE.SERVICE_ID=SERVICE.SERVICE_ID ) AND ( SERVICE.SL_ID=SERVICE_LINE.SL_ID ) AND ( SERVICE_LINE.service_line = 'Accommodation' ) GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
            </fullOuterJoin>
            <fullOuterJoin>
                <statement index="3">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), count( distinct SALES.inv_id) FROM SALES GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
                <statement index="4">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), sum(INVOICE_LINE.days * INVOICE_LINE.nb_guests * SERVICE.price) FROM SALES, INVOICE_LINE, SERVICE WHERE ( SALES.INV_ID=INVOICE_LINE.INV_ID ) AND ( INVOICE_LINE.SERVICE_ID=SERVICE.SERVICE_ID ) GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
            </fullOuterJoin>
        </union>
    </queryplan>

  • HT1918 I cancelled a payment through PayPal. How do I update the payment for that charge?  I looked at my payment information and it has my credit card information.  I'm not sure where to update the PayPal part of payment.

    I cancelled a payment through PayPal. How do I update the payment for that charge?  I looked at my payment information and it has my credit card information.  I'm not sure where to update the payment that was associated with my PayPal account?  I am not sure what that paid for?  I am trying to process updates on my IPhone &amp; IPad for apps. I have already downloaded. 

    Hi Xellana, and a warm welcome to the forums!
    I'm looking for information and pricing on possibly upgrading the processor from the PowerPC to Intel.
    While anything is possible if you had enough money... NOPE, you can't change the CPUs to Intel, nor can you get any faster PPC upgrades for it. It'd be far cheaper to buy a new IntelMac than to replace everything inside the G5, and I mean just about everything, then figure out how to machine the case & such to mount Intel Logic Board, Graphic Card & such.
    Sorry.

  • UPDATING the query in materialized view

    Hi,
    i have a little doubt in Materialized view. i created a materialized view and log with the following query,
    create table test_mv (a number ,b number )
    alter table test_mv add constraint t_pk primary key ( a );
    insert into test_mv values (1,2);
    insert into test_mv values(2,2);
    insert into test_mv values(3,2);
    insert into test_mv values(4,2);
    insert into test_mv values(5,2);
    commit;
    CREATE MATERIALIZED VIEW LOG ON test_mv
    WITH SEQUENCE, ROWID
    *(a,b)*
    INCLUDING NEW VALUES;
    CREATE MATERIALIZED VIEW product_sales_mv
    ENABLE QUERY REWRITE
    AS SELECT  b  from test_mv;
    Now i want to update the query in the MV as 'Select a from test_mv' . for that i tried with
    *'ALTER MATERIALIZED VIEW product_sales_mv AS SELECT a from test_mv;'*
    But it throwing error,
    Error starting at line 5 in command:
    alter  MATERIALIZED VIEW product_sales_mv   AS SELECT  b  from test_mv
    Error report:
    SQL Error: ORA-00933: SQL command not properly ended
    +00933. 00000 - "SQL command not properly ended"+
    *Cause:+   
    *Action:+
    i guess i am doing wrong. kindly help me here. i want to update it without drop and recreate.
    thanks,
    Jeevanand.Ke

    Hi Jeeva,
    No. you cannot add or drop columns to the materialized view using the ALTER Statement.
    To Change the Structure of the view , drop and re-create the materialized view.
    To Alter a materialized view log, You can use the ALTER MATERIALIZED VIEW LOG. By this,
    You can add new columns to a materialized view log.
    ALTER MATERIALIZED VIEW LOG ON sggi_mrps.emp ADD(deptno);Thanks,
    Shankar
    Edited by: Shankar Viji on Aug 24, 2012 2:11 AM

  • DECODE in the WHERE part of the query ?

    Hello guys ,I am on 10gR2, and as always , the following mystery for me will be funny for you : ), so please share your knowledge.
    I have one select on v$session , and i would to use something like DECODE function in the WHERE part of the query,
    but , for the values i enter through the variables.
    Currently i have something like :
    WHERE status =upper('&session_status') AND username IS NOT NULL order by last_call_et desc;and that works fine, i enter either 'active' or 'inactive' and i get results.
    But i would like to enter for example '1' for active and '2' for inactive, so i could write as little as i can as i am lazy. : )
    Do you have some idea ?

    hi there
    select * from v$session  where status = decode('&session_status',1,'ACTIVE','INACTIVE')  AND username IS NOT NULL order by last_call_et descregards
    hitesh

  • Where to update the credit card information?

    Dear All,
    Where to update the credit card information without purchase any skype credit?
    Thanks

    Spoke with Adobe staff - apparently this is a known issue with no fix in place. Hopefully they can get me in touch with someone who can update my credit card info so I don't get locked out of my applications as I have an art exhibit I'm preparing for. I'll keep the forum posted on status.

  • Where to update the ACH Company ID for the bank?

    Electronic file that Payment Process creates has a ACH company Id that is invalid. We have to change this ID in the system so that the valid company id is reflected in the file.
    Where to update the ACH Company ID for the bank?

    Hi,
    Normally, the Company ID should be that of the Tax Reporting ID - (M) Setup:Tax:Reporting Entities.
    If using NACHA, the initial digit code can either be 1, 3 or 9 (depends i.e. for IRS EIN="1") + the first 9 digit of tax id.
    (Depending on your setup) Tax ID can also be checked in the Alternate Account Holder field of the Bank Accounts window (Disbursement bank account).
    regards,
    Rownald

  • Two conditions in where part of the query out of which 1 is based on length

    hi
    am having two tables and i need to join them to get my desired output. let me explain with example
    table A contains data like
    >
    col1 col2 col3
    12345 sons abcd
    23456 snms bcde
    34567 snms nil
    56478 sons ..
    >
    table B contains data like
    >
    col-1 col-2 col-3
    sons not-subscribed 0
    sons nil-balance 111
    snms not-subscribed 0
    snms incorrect 111
    soai incorrect 111
    >
    i need the output like
    >
    col1_of_table_A col3_of_table_A col-2_of_table_B
    12345 abcd nilbalance
    23456 bcde incorrect
    34567 nil not-subscribed
    56478 .. not-subscribed
    >
    likely requirement in sample query format is
    select a.col1,a.col3,b.col-2 from A a, B b where ((a.col2=b.col-1 and length(a.col3)>length(b.col-3)) or (a.col2=b.col-1 and length(a.col3)<length(b.col-3)))how to achieve this conditional joint?

    Hi,
    in your query i just added '..' instead of null for the row starting with 56478 in table A and executed the query as below and it doesn't give my desired output.
    with a  as
         select 12345 as col1, 'sons' as col2, 'abcd' as col3 from dual union all
        select 23456, 'snms', 'bcde' from dual union all
        select 34567, 'snms', 'nil' from dual union all
      select 56478, 'sons', '..' from dual
       , b as
         select 'sons' col1, 'not-subscribed' col2, 0 col3 from dual union all
        select 'sons', 'nil-balance', 111 from dual union all
         select 'snms', 'not-subscribed', 0 from dual union all
        select 'snms', 'incorrect', 111 from dual union all
        select 'soai', 'incorrect', 111 from dual
       select  col1, col3, col2
      from
           select a.col1,a.col3,b.col2, row_number() over (partition by a.col1 order by b.col2) rn
            from A a
             left outer join b on (
                                  (    a.col2         = b.col1
                                   and  length(a.col3) > length(b.col3)
                                  or
                                   (    a.col2         = b.col1
                                   and length(a.col3)  < length(b.col3)
      where rn = 1
      output is
    >
    COL1     COL3     COL2
    12345     abcd     nil-balance
    23456     bcde     incorrect
    34567     nil     not-subscribed
    56478     ..     nil-balance
    >
    what could be problem?

  • Performance hit using "where" clause in the query

    Hi All,
    I am facing a huge performance hit in the java code when using "where" clause in queries. Following are the details:
    1. SELECT * FROM Employee
    2. SELECT * FROM Employee where employeeid in (26,200,330,571,618,945)
    There is no difference in Query Execution Time for both queries.
    Business Logic Time is huge in second case as compared to first one (ratio - 1:20).
    Rows returned are more in first case as compared to second case.(ratio - 1:4)
    Business Logic is same for both the cases where I iterate through the ResultSet, get the objects and set them in a data structure.
    Does anybody know the reason of unexpected time difference for the business logic in the second case?

    Since you're mentioning clustering your index, I'll assume you are using Oracle. Knowing what database you are using makes it a lot easier to suggest things.
    Since you are using Oracle, you can get the database to tell you what execution plan it is using for each of the 2 SQL statements, and figure out why they have similar times (if they do).
    First, you need to be able to run SQL*Plus; that comes as part of a standard database installation and as part of the Oracle client installation - getting it set up and running is outside the scope of this forum.
    Second, you may need your DBA to enable autotracing, if it's not already:
    http://asktom.oracle.com/~tkyte/article1/autotrace.html
    http://www.samoratech.com/tips/swenableautotrace.htm
    Once it's all set up, you can log in to your database using sql*plus, issue "SET AUTOTRACE ON", issue queries and get execution plan information back.
    For example:
    SQL> set autotrace on
    SQL> select count(*) from it.ticket where ticket_number between 10 and 20;
      COUNT(*)
            11
    Execution Plan
    Plan hash value: 2983758974
    | Id  | Operation         | Name       | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |            |     1 |     4 |     1   (0)| 00:00:01 |
    |   1 |  SORT AGGREGATE   |            |     1 |     4 |            |          |
    |*  2 |   INDEX RANGE SCAN| TICKET_N10 |    12 |    48 |     1   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - access("TICKET_NUMBER">=10 AND "TICKET_NUMBER"<=20)
    Statistics
              0  recursive calls
              0  db block gets
              1  consistent gets
              0  physical reads
              0  redo size
            515  bytes sent via SQL*Net to client
            469  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              1  rows processed
    SQL> This tells me that this query used an INDEX RANGE SCAN on index TICKET_N1; the query can't do much better than that logically... In fact, the statistic "1 consistent gets" tells me that Oracle had to examine only one data block to get the answer, also can't do better than that. the statistic, "0 physical reads" tells me that the 1 data block used was already cached in Oracle's memory.
    the above is from Oracle 10g; autotrace is available back to at least 8i, but they've been adding information to the output with each release.
    If you have questions about sql_plus, check the forums at asktom.oracle.com or http://forums.oracle.com/forums/category.jspa?categoryID=18
    since sql*plus is not a JDBC thing...
    Oh, and sql*plus can also give you easier access to timing information, with "set timing on".

  • Where() clause returning "The query specified in the URI is not valid..."

    I have a .Net mobile service.
    Calling this:
    https://qserv.azure-mobile.net/tables/items?$filter=(company%20eq%20%27987af3f9-8d44-4a9d-8be2-7e0567287106%27)
    Returns:
    {"message":"The query specified in the URI is not valid. Could not find a property named 'company' on type 'Default.<>f__AnonymousType2_3OfString_String_Double'."}
    The field name in the "items" entity model is "company" and on the database is "company_Id", neither will work.Using http://ajax.aspnetcdn.com/ajax/mobileservices/MobileServices.Web-1.2.5.min.jsWhat is wrong?
    Regards

    I see. Now works. So it would be like doing "SELECT ITEM,CATEGORY,COUNTRY, FROM TABLE WHERE CATEGORY='toy' AND COUNTRY='US'"
    All rows will contain the "CATEGORY" and "COUNTRY" fields (or more), which is kind of redundant and bandwidth consuming.
    Hope MS can change this.
    Regards

  • Update the Query view

    Hi
    I have one query with 12 different views. Now if i change the query is there any ways the view will be saved ? Or do i have to do changes everytime in view manually ?
    please advise.
    I will assign the points to answer.
    Thank You,
    KSmith

    Hi
    When you modify the query, the modification will effect the existing views.
    Example: if you add a free characteristic, then the views will remain same.... and the user will be able to drill on this free characteristic.
    if you add a Key Fig.... then it will change all the views for this query.
    Hope this helps!

  • Update the query with increment

    Hi, How I can update the column r2 with the new number. r2 column which needs to be updated from 300000 with increment 1.
    drop table #cric
    create table #cric (r1 int, r2 int, rt char(4),rp char(6))
    insert into #cric values (111111,0,'GR','ATYOP')
    insert into #cric values (222222,0,'GE','ATYOP')
    insert into #cric values (100112,0,'TX','ATYOR')
    insert into #cric values (100113,0,'TX','ATYOP')
    insert into #cric values (100114,0,'TS','ATYOS')
    insert into #cric values (100117,0,'TS','ATYOP')
    insert into #cric values (100118,0,'TS','ATYOP')
    --Output
    Select * from #cric
    r1    r2    rt    rp
    111111    300000    GR      ATYOP
    222222    300001    GE      ATYOP
    100112    300002    TX      ATYOR
    100113    300003    TX      ATYOP
    100114    300004    TS      ATYOS
    100117    300005    TS      ATYOP
    100118    300006    TS      ATYOP
    Thanks.

    This is easily achieved with the row_number() function:
    create table #cric (r1 int, r2 int, rt char(4),rp char(6))
    insert into #cric values (111111,0,'GR','ATYOP')
    insert into #cric values (222222,0,'GE','ATYOP')
    insert into #cric values (100112,0,'TX','ATYOR')
    insert into #cric values (100113,0,'TX','ATYOP')
    insert into #cric values (100114,0,'TS','ATYOS')
    insert into #cric values (100117,0,'TS','ATYOP')
    insert into #cric values (100118,0,'TS','ATYOP')
    go
    WITH numbering AS (
       SELECT r2, rowno = row_number() OVER(ORDER BY r1)
       FROM   #cric
    UPDATE numbering
    SET    r2 = 30000 + rowno
    go
    SELECT * FROM #cric
    go
    drop table #cric
    Except that this will not give you the result you are asking for. But there is no apparent indication why you want exactly that order. Hm, maybe
       ORDER BY substring(rt, 1, 1), substring(rt, 2, 1) DESC
    But that is a little far-fetched.
    If you really mean that the rows are inserted, there is no way to safely do this, unless you have a column that records the insertion order. You could try "ORDER BY (SELECT NULL)" but that really means "any order, I don't care which".
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Where to update the VXI PNP drivers in Labview 8.6

    All,
    I just started using Labview 8.6. Previously with Labview 7.1, I can download a VXI PNP driver from Agilent and then go to "tools/instrumentation/update VXI PNP drivers" to add the driver to the function palette. I am wondering where this function is in the new Labview 8.6. 
    For the particular driver, I am using the hp816x. I downloaded as a .exe file from Agilent website. No relevant driver can be found on the NI instrument driver network.  
    Please help me. Thanks so much!

    Hello,
    This functionality is found in a separate download, the LabVIEW Instrument Driver Import Wizard, found the LabVIEW Plug and Play section here : http://www.ni.com/devzone/idnet/development.htm
    You will need to download and install this software, and it will add that functionality to whatever version of LabVIEW you install it to. 
    Justin E
    National Instruments R&D

  • Where to find the resolved query sent to the database?

    Verison 4.1.1.00.23
    Hello,
    Where/How do I find the actual query that is sent to the database?  I've enabled Debug on the Dev Toolbar, but I still don't see where the query that is sent to the database is at? I'm hoping to see a view with the page items resolved not what is actually in the page.
    I have a query on a collection and I keep getting a 'SQL command not properly ended' error and I'm not seeing why it's not "properly ended".
    Hope this is clear.
    Let me know if not.
    Thanks,
    Joe

    Tony,
    Thank you for replying.
    There is an update -  The query no longer throws the 'SQL command not properly ended', but now it throws the dreaded 'Missing Right Parenthesis' error.
    The query is:
                APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY_B (p_collection_name => 'TEAM_EMP',
                                                                p_query => 'SELECT cme_system, tbs_team_id, resource_id,
                    CASE WHEN resource_type = ''C'' THEN ''Consultant'' ELSE ''Employee'' END AS resource_type, role,
                    jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec, forecast_id, project_id,
                    jan_id, feb_id, mar_id, apr_id, may_id, jun_id, jul_id, aug_id, sep_id, oct_id, nov_id, dec_id,
                    resource_name, tbs_forecast_year.last_updated, last_updated_by.last_updated_by, area_id, p.group_id, team_name,start_date, end_date, p.project_name
                    FROM tbs_forecast_year
                    INNER JOIN (SELECT project_id pid, area_id, tbs_projects.group_id, UPPER(project_name) project_name
                                FROM tbs_projects
                                WHERE status IN (''Pipeline'', ''Planned - Partially Funded'', ''Planned'', ''Execution'')) p
                    ON p.pid = project_id
                    LEFT JOIN (SELECT resource_onepass_id, resource_name last_updated_by
                               FROM resources where resource_onepass_id is not null) last_updated_by
                    ON last_updated_by.resource_onepass_id = tbs_forecast_year.last_updated_by
                    LEFT JOIN tbs_teams ON tbs_teams.team_id = tbs_team_id
                    LEFT JOIN (SELECT resources.resource_id rid, resource_name from resources) resources
                    ON rid = resource_id
                    WHERE (jan > 0 OR feb > 0 OR mar > 0 OR apr > 0 OR may > 0 OR jun > 0 OR jul > 0 OR aug > 0 OR sep > 0 OR oct > 0 OR nov > 0 OR dec > 0)
                    AND forecast_type = ''Supply''
                    AND (project_id = '|| :F189_PROJECT_ID ||' OR 0 = '||:F189_PROJECT_ID ||')
                    AND (tbs_team_id IN (SELECT * FROM the(SELECT cast(vc2_list('|| :F189_TEAM_ID ||') as vc2_list_type) FROM dual))
                        OR 0 IN (SELECT * FROM the(SELECT cast(vc2_list('|| :F189_TEAM_ID ||') as vc2_list_type) FROM dual)))
                    AND (resource_id = '|| :F189_RESOURCE_ID ||' OR 0 = '||:F189_RESOURCE_ID ||')
                    AND (team_name like ''%'|| :F189_TEAM_NAME ||'%'' OR '' '' = '' '||:F189_TEAM_NAME ||''')
                    AND (area_id = '|| :F189_AREA_ID ||' OR 0 = '||:F189_AREA_ID ||')
                    AND NOT (0 = '||:F189_RESOURCE_ID ||' AND 0 = '||:F189_AREA_ID ||' AND 0 IN (SELECT * FROM the(SELECT cast(vc2_list('||:F189_TEAM_ID||') as vc2_list_type) from dual))
                    AND 0 = '||:F189_PROJECT_ID ||' AND '' '' like '' %'||:F189_TEAM_NAME ||'%'')
    Line 22 is calling a function to deal with a Multi-Select list that I found https://community.oracle.com/message/3566187#3566187. I've created the TYPE and the function as indicated in that thread. The error is thrown when multiple Team's are selected.
    The exact error is: create_collection_from_query_b Error:ORA-20104: create_collection_from_query ParseErr:ORA-00907: missing right parenthesis
    There are going to be 4 multi-select lists and TEAM_ID is the first.
    :F189_TEAM_ID is an application item that is being populated from a page process.
    If you have a better solution for dealing with Multi-Select lists I would be very interested in hearing it.
    I've tried the replace and the instr methods with no success. Once the Collection is working then I have to modify the query for the page which is using the APEX_ITEM API's, but I haven't gotten this working yet.
    Thanks Tony!
    Joe

  • Pls help me to modify the query for performance improvement

    Hi,
    I have the below initialization
    DECLARE @Active bit =1 ;
    Declare @id int
    SELECT @Active=CASE WHEN id=@id and [Rank] ='Good' then 0 else 1 END  FROM dbo.Students
    I have to change this query in such a way that the conditions id=@id and [Rank] ='Good' should go to the where condition of the query. In that case, how can i use Case statement to retrieve 1 or 0? Can you please help me to modify this initialization?

    I dont understand your query...May be below? or provide us sample data and your output...
    SELECT *  FROM dbo.students
    where @Active=CASE
    WHEN id=@id and rank ='Good' then 0 else 1 END
    But, I doubt you will have performance improvement here?
    Do you have index on id?
    If you are looking for getting the data for @ID with rank ='Good' then use the below:Make sure, you have index on id,rank combination.
    SELECT *  FROM dbo.students
    where  id=@id
    and rank ='Good' 

Maybe you are looking for