Query Output in specific way

Team,
Query - select d.Hostname, od.data from zDevice d join zOpaqueData od on d.ZUID = od.object WHERE (od.name = 'com.novell.zenworks.data.configSettingForContentReplication') order by Hostname
Output - <ContentSatelliteServer><ServersToUse>Parent</ServersToUse></ContentSatelliteServer>
Above is just the sample, I just want to retrieve the Parent
part, could someone help me?
Thank you.

Assuming your output is varchar type, and you need the text from
<ServersToUse> and </ServersToUse>
Please try as follows
Declare @outputstring varchar(100)='<ContentSatelliteServer><ServersToUse>Parent</ServersToUse></ContentSatelliteServer>'
select SUBSTRING(@outputstring,CHARINDEX('ServersToUse',@outputstring)+LEN('ServersToUse')+1,CHARINDEX('</ServersToUse>',@outputstring)-(CHARINDEX('ServersToUse',@outputstring)+LEN('ServersToUse')+1))
Thanks
Manish
Please click Mark as Answer if my post solved your problem and click
Vote as Helpful if this post was useful.

Similar Messages

  • Query: link a specific output field to a transaction

    Dear All,
    I create a infoset and a query (join MARA - MARC - MARD) for manage a report/list with some data:
    -  Material code & descript.
    -  Builder
    -  Bin (only MM not WM storage bin)
    -  MAterial group
    - etc...
    When I run the query and the system shows the list I would like to allow a double click in the material code in order to link/jump to the MM03/MM02.
    I know that is possible and the past I found the solution but unfortunately I have lost the file with all informations.
    Thank you in advance!!!
    Best Regards.
    Gavino

    Gavino,
    Open your query in change SQ01.
    Goto > Report Assignment.
    You will probably have a blank popup.  Insert row (F8 or hit green plus)
    You will get a popup with 3 blank fields.  I assume you wish to 'jump' to a transaction.  So, hit the 'Other report type' button.
    Select 'TR' transaction.  Enter the Transaction code.  Green Check.
    Save.
    Save.
    This won't work on all transactions, where the data item is carried from the query output to the transaction, although the jump will still happen.
    Rgds,
    DB49

  • Missing output variable specification

    Hi there,
    I am trying to put in place a one way BPEL process, which receive the invocation from the Mediator component and do not expect any response from the process. I get this error during compilation:
    Buildfile: /opt/oracle-jdev/bea-home/jdeveloper/bin/ant-sca-compile.xml
    scac:
    [scac] Validating composite "/home/alessandro/Work-Space/JDeveloperProject/SOA-POC/trunk/AuditService/composite.xml"
    [scac] Setting BPELC option 'classpath' to /opt/oracle-jdev/bea-home/jdeveloper/jdev/extensions/oracle.sca.modeler.jar:/opt/oracle-jdev/bea-home/jdeveloper/soa/modules/oracle.soa.fabric_11.1.1/fabric-runtime.jar:/opt/oracle-jdev/bea-home/jdeveloper/soa/modules/oracle.soa.mgmt_11.1.1/soa-infra-mgmt.jar:/opt/oracle-jdev/bea-home/oracle_common/modules/oracle.fabriccommon_11.1.1/fabric-common.jar:/opt/oracle-jdev/bea-home/jdeveloper/soa/modules/oracle.soa.bpel_11.1.1/orabpel.jar:/opt/oracle-jdev/bea-home/jdeveloper/soa/modules/oracle.soa.mediator_11.1.1/mediator_client.jar:/opt/oracle-jdev/bea-home/oracle_common/modules/oracle.mds_11.1.1/mdsrt.jar::/home/alessandro/Work-Space/JDeveloperProject/SOA-POC/trunk/AuditService/SCA-INF/classes
    [scac] FATAL_ERROR: in BPELProcess.bpel(107): output variable not defined
    [scac] <invoke/> missing output variable specification
    [scac] Make sure to use attribute outputVariable to specify the output message
    BUILD FAILED
    /opt/oracle-jdev/bea-home/jdeveloper/bin/ant-sca-compile.xml:236: Java returned: 1 Check log file : /home/alessandro/Work-Space/JDeveloperProject/SOA-POC/trunk/AuditService/SCA-INF/classes/scac.log for errors
    Total time: 9 seconds
    BPEL
    <?xml version = "1.0" encoding = "UTF-8" ?>
    <!--
    Oracle JDeveloper BPEL Designer
    Created: Thu Oct 07 16:50:01 CEST 2010
    Author: alessandro
    Purpose: One Way BPEL Process
    -->
    <process name="BPELProcess"
    targetNamespace="http://xmlns.oracle.com/SOA_POC_jws/AuditService/BPELProcess"
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:client="http://xmlns.oracle.com/SOA_POC_jws/AuditService/BPELProcess"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/SOA-POC/AuditService/AuditDB%2F"
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    xmlns:ns2="http://xml.virtual-lab.eu/schema/poc-soa/audit/def"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ns3="http://xmlns.oracle.com/pcbpel/adapter/db/top/AuditDB"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <!--
    PARTNERLINKS
    List of services participating in this BPEL process
    -->
    <partnerLinks>
    <!--
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
    <partnerLink name="bpelprocess_client" partnerLinkType="client:BPELProcess" myRole="BPELProcessProvider"/>
    <partnerLink name="AuditDB" partnerRole="AuditDB_role"
    partnerLinkType="ns1:AuditDB_plt"/>
    </partnerLinks>
    <!--
    VARIABLES
    List of messages and XML documents used within this BPEL process
    -->
    <variables>
    <!-- Reference to the message passed as input during initiation -->
    <variable name="inputVariable" messageType="client:BPELProcessRequestMessage"/>
    <variable name="Invoke_AuditDB_insert_InputVariable"
    messageType="ns1:LogCollection_msg"/>
    <variable name="outputVariable" type="xsd:string"/>
    </variables>
    <!--
    ORCHESTRATION LOGIC
    Set of activities coordinating the flow of messages across the
    services integrated within this business process
    -->
    <sequence name="main">
    <!-- Receive input from requestor. (Note: This maps to operation defined in BPELProcess.wsdl) -->
    <receive name="receiveInput" partnerLink="bpelprocess_client" portType="client:BPELProcess" operation="process" variable="inputVariable" createInstance="yes"/>
    <assign name="Assign_Payload">
    <copy>
    <from variable="inputVariable" part="payload"
    query="/ns2:add/ns2:executionTime"/>
    <to variable="Invoke_AuditDB_insert_InputVariable" part="LogCollection"
    query="/ns3:LogCollection/ns3:Log/ns3:when"/>
    </copy>
    <copy>
    <from variable="inputVariable" part="payload"
    query="/ns2:add/ns2:onSys/@ns2:which"/>
    <to variable="Invoke_AuditDB_insert_InputVariable" part="LogCollection"
    query="/ns3:LogCollection/ns3:Log/ns3:whichSys"/>
    </copy>
    <copy>
    <from variable="inputVariable" part="payload"
    query="/ns2:add/ns2:fromUser"/>
    <to variable="Invoke_AuditDB_insert_InputVariable" part="LogCollection"
    query="/ns3:LogCollection/ns3:Log/ns3:who"/>
    </copy>
    <copy>
    <from variable="inputVariable" part="payload"
    query="/ns2:add/ns2:usingClient"/>
    <to variable="Invoke_AuditDB_insert_InputVariable" part="LogCollection"
    query="/ns3:LogCollection/ns3:Log/ns3:whichClient"/>
    </copy>
    <copy>
    <from variable="inputVariable" part="payload"
    query="/ns2:add/ns2:fromIP"/>
    <to variable="Invoke_AuditDB_insert_InputVariable" part="LogCollection"
    query="/ns3:LogCollection/ns3:Log/ns3:ipClient"/>
    </copy>
    <copy>
    <from variable="inputVariable" part="payload"
    query="/ns2:add/ns2:callingWS_Operation"/>
    <to variable="Invoke_AuditDB_insert_InputVariable" part="LogCollection"
    query="/ns3:LogCollection/ns3:Log/ns3:wsOperation"/>
    </copy>
    </assign>
    <invoke name="Invoke_AuditDB"
    inputVariable="Invoke_AuditDB_insert_InputVariable"
    partnerLink="AuditDB" portType="ns1:AuditDB_ptt"
    operation="insert"/>
    <terminate name="Terminate"/>
    </sequence>
    </process>
    Could anyone explain me why the compiler expects an output variable and why it doesn't work anyway.
    Thanks in advance
    Alessandro I

    Looks like you deleted the the response back from the client.
    If you want to fire and forget BPEL process create an empty BPEL process or an async process. Don't delete the callback in the async process. If the client isn't listening then nothing will happen.
    also why is your last step a terminate, this will force all process to have a status of fail.
    cheers
    James

  • How to Align Query output in vertical grids in Classic Reports

    HI all,
    I have a requirement to display query output in a vertical grid.
    For example, If my query output is :
    SQL, PL/SQL, Forms,Reports, XMLP, APEX etc then output should be displayed in following format:
    1. SQL 2. PL/SQL 3. Forms
    4. Reports 5. XMLP 6. APEX
    Thanks in Advance!!
    Regards,
    Vamsi

    866010 wrote:
    Thanks for the response!!
    SQL: select * from emp
    where 1=1
    and emp = 1 ;
    We want to display emp details from the above query in the following format:
    EMP No : 1 Ename: XXX Manager_Id: 2
    Job: Consultant Sal: 1000 Commission: 5
    We want a break after three columns.Create a custom named column template and base the tabular form report on this: {message:id=10399762}
    Please read the FAQ and forum sticky threads (if you haven't done so already), and update your forum profile with a real handle instead of "866010".
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.

  • Change layout of Adhoc query output list for Custom infotype

    Hi All,
    The fields in the Infoset query output on a custom infotype are aligned with the fields u2018payment typeu2019 and u2018amountu2019 appearing repeatedly(in columns) as declared in the Infotype and the output will be a long horizontal list.
    Instead, the requirement is that the output list should show vertically so that If I choose u2018Payment Typeu2019 and u2018Amountu2019 as output fields, it will show a long vertical list as in the case of a standard infotype (IT0008).
    Also, this way enables user to use Payment Type as a selection criteria so as to just pulling the needed payment type. When we use IT0008 in the infoset it works fine but in custom IT it does not work.
    Any pointers/suggestions on how we can achieve this would be helpful.

    Hi yu liang,
                     You can find vendor list having Vendor No. & without showing total liability for every vendor.
    after executing the report,
    1.You need to select "change layout (ctrl+F8)",
    a small window comes, it has two part -> column content & hidden fields.
    then u select "Vendor" from hidden field & move it to column content.
    2. at column content there is a column named "Total". u need to remove check for your column name "amount".
    now select "copy" button or enter. u will find the req. report.
    u can save it also by ur name.
    hope its helpful to u.......
    plz, reward points as a way of thanks if helpful...

  • Query Output to download in flat file through APD  or other means?

    Hello Experts,
    I am currently on BW3.5 system and have requirement to load query output in flat file in .csv format. I checked the option of APD but looks like we cant directly load the query output in flat file like in APD (BW  3.5 system) .
    One way i can think of it...load  the query output in transactional ODS and built an infospoke on it to write into flat file.
    Please advice if there are any better methods to store the query output in flat files.
    Thanks!

    Hi,
    Use RSCRM_BAPI.
    See
    Re: RSCRM_Bapi
    See the help on RSCRM_BAPI
    Re: Running Quaries automatically and saving them in as a Excel file in Server
    Re: Data transfer to external systems
    Re: Loading from a Custom R/3 Table
    Re: How can I schedule my Bex report to execute in background
    Re: How can I insert the RSCRM_BAPI into Process chain?
    Thanks
    Reddy

  • Ad-Hoc query output issue

    Hello Experts,
    Recently we have upgraded the system and we are facing issues with Ad-Hoc query output.
    Issue : After entering data in selection fields and click on "OUTPUT" button we  are getting output. now I changed the selection field  data and click on "OUTPUT" button then we are getting message "No Data selected".
    But when clicked on "HIT LIST" button for changed selection fields then we are getting HIT LIST count and after click of "OUTPUT" button we are getting output.
    So at this point this is unclear why it is working after HIT LIST? This is not consistent but appearing most of the time.
    Regards,
    Saurabh

    Thank you for reply. Yes I have checked SQ03, 02 and 01.
    It is not specific to particular query it is appears to be for all the queries.
    The important thing is to get the output we need to click first HIT LIST button and then OUTPUT. Is there any specific settings maintained for displaying output without clicking HIT LIST ?

  • Jump to search term in a query output...

    Hi,
    I have the results of a query outputted in a table. Depending
    on the user, this can be a longish query - maybe 100+ results. All
    these results have a checkbox next to them. The user checks the
    records they need to select, then submits the form to take that
    list of records in the "check" variable to another page which
    processes it.
    What I'd like to be able to do is provide a search box on top
    of this table, for the user to type in a search term in the record
    they want to find. Then, I'd like the page to jump down to that
    record so the user can check it. But here's the kicker - I don't
    want to lose any other already-checked boxes. So the form variable
    needs to persist, even if this is done multiple times.
    Any ideas on how this might be accomplished? I don't mind if
    the search has to be tied just to one field, etc. And I'm not
    asking anyone to write the code for me. Just point me in the
    direction of the right technique/technology, if ya can.
    Thank you!

    Hi,
    It might be worth checking out some of the Ajax libraries for
    this. jQuery (
    http://jquery.com) has a plugin
    called ScrollTo (
    http://plugins.jquery.com/project/ScrollTo)
    that lets you easily scroll to a specific position or element (or
    other) item on a page. The developer has more details on his site (
    http://flesler.blogspot.com/2007/10/jqueryscrollto.html).
    You could use the ScrollTo plugin in concert with one of the
    Auto Complete plugins for jQuery (one of them:
    http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/).
    Hope that helps get you started.

  • Total Line in BEX query output

    Hello,
        I have a requirement, where we have to show just total line in output for BEX query. We want to hide {though hide feature will not work} line items that we process. How can we do it?
       Requirement goes like this:
       Let say for orders, we have order requested date and actual delivered date. The query formula processes all line items for given selection and measures ontime, late and early shipments based on date in variable exit we have. At output (that is in total line)query will write have % ontime late early.
       So for selection calmonth we need to show % ontime late early but for that we need to process all line items to get % calculation. So, how can I keep only total line in query output.
      For example: Output should look like for selection of calmonth, plant - product  or shipping point etc..
      Calmonth plant - % ontime late early or
      Calmonth product - % ontime late early or
      Calmonth shipping point - % ontime late early
      It is working in a way it shows all line items and total line at last. All I want is total line and ignore line items.
      Thanks,
      Aj

    Remove the drilldowns for the "detail" characteristics that you do not want to see. The report will then display only the "totals" that you do want to see.
    Hope this helps...
    Bob

  • Outputting a specific level of Content Parent

    I've taken a look at the Developer Guide and the Javadoc Reference but couldn't find an answer to my question.
    Is there a way to either:
    - Read Content Parent assets, but at a specific level (depth) only, in order to output them (e.g. in an HTML option list) or
    - When reading Content Parent Assets are you able to identify what level (depth) an item is, in order to only output a specific level
    E.g. if I have a 'Location' taxonomy of Region > Country > State and define this into a Content Parent structure of the same to create assets of: Asia Pacific > Australia > NSW.... how can I read the Content Parent assets and output a list of only Countries?
    Not sure on tag or API... but assume there is some way?
    Cheers

    You will have to use filed copier in parents i.e. in countries and regions.
    parentRegion- this attribute will hold the name value of region parent
    parentCountry- this attribute will hold the name value of Country parent
    This way your asset will inherit the both the values for Region and countries and then you can search state on Countries which have the same region giving you the list you require.
    For e.g.
    NSW will have country as Australia and region as Asia Pacific.
    Now you will apply search state for all countries having attribute Region as Asia Pacific
    You can also refer FirstSite for this. They have used this for Navigation instead of Dropdown.

  • Coldfusion tags within query output

    I have a simple query to a SQL database that returns a record
    set. Within the record set is a field that contains HTML and CFML.
    When I display the content it reads the CF tags literally. Is there
    any way to get the CF tags to be processed when it is returned in
    the query output? See example below.
    ------------------ CODE ON PAGE
    <CFQUERY name="getdata" datasource="DSN">
    select ID, HTMLFIELD
    from TABLENAME
    where ID = '1'
    </CFQUERY>
    <CFOUTPUT QUERY="getdata">
    #getdata.HTMLFIELD#
    </CFOUTPUT>
    -----------------------VALUE OF "HTMLFIELD"
    VARIABLE--------------------------------
    <CFSET todaysdate = #DateFormat(Now(), "mm/dd/yyyy")#>
    <p>Today is #variables.todaysdate#</p>
    ------------------------WHAT IS DISPLAYED IN THE
    BROWSER----------------
    Today is #variables.todaysdate#
    -----------------------WHAT should BE DISPLAYED IN THE
    BROWSER------------
    Today is 06/14/2006

    Pete is right, very risky.
    I've done a similar feature for a site I wrote that allowed
    users to edit pages on the fly, only I pre-selected functions that
    could be used and created wrappers for them. Then the users would
    insert something like $now()$ in the WYSIWYG. Then when the page
    was requested I would pass the data containing HTML and psuedo-CFML
    through parse routine which would render the end results in a
    controlled manner.
    I would really recommend this route as you will have much
    more controll over the types of scripts that can be run. It is also
    easy to make buttons that insert the code for them.
    HTH

  • How to get query output data

    Hi,
    I have created procedure to analyze tables. I tried to get output but its not displaye in a proper way. I want to output as like as a query output.
    create or replace procedure tablestats
    as
    begin
    for cur in (SELECT OWNER,TABLE_NAME, NUM_ROWS, BLOCKS, AVG_ROW_LEN,TO_CHAR(LAST_ANALYZED, 'MM/DD/YYYY HH24:MI:SS')FROM DBA_TABLES WHERE OWNER='SCOTT') LOOP
    dbms_output.put_line(cur.owner||' '||' '||cur.table_name||' '||cur.NUM_ROWS||' '||cur.BLOCKS||' '||cur.AVG_ROW_LEN);
    DBMS_STATS.GATHER_TABLE_STATS('scott',cur.table_name);
    end loop;
    end;
    Output came lke this:
    SQL> exec tablestats
    SCOTT  DEPT 4 4 20
    SCOTT  EMP 14 4 38
    SCOTT  SALGRADE 5 4 10
    SCOTT  SERVICE 8 5 12
    SCOTT  BONUS 0 0 0
    PL/SQL procedure successfully completed.
    Acually i want output like..
      1* SELECT OWNER,TABLE_NAME, NUM_ROWS, BLOCKS, AVG_ROW_LEN,TO_CHAR(LAST_ANALYZED, 'MM/DD/YYYY HH24:MI:SS') Last_Analyzed FROM DBA_TABLES WHERE OWNER=
    'SCOTT'
    SQL> /
    OWNER                          TABLE_NAME                       NUM_ROWS     BLOCKS   AVG_ROW_LEN   LAST_ANALYZED
    SCOTT                          DEPT                                             4                   4                 20                   11/27/2013 19:10:44
    SCOTT                          EMP                                            14                   4                 38                    11/27/2013 19:10:44
    SCOTT                          SALGRADE                                   5                   4                 10                    11/27/2013 19:10:44
    SCOTT                          SERVICE                                      8                   5                 12                     11/27/2013 19:10:44
    SCOTT                          BONUS                                        0                    0                  0                      11/27/2013 19:10:44
    Please help me.
    Thanks,

    Hi,
    As John said, PL/SQL doesn't give you any of the nice formatting features that front end tools, like SQL*Plus, provide.  If you want headers, you have to say exactly what they are, and write them yourself.  If you want the columns to line up, you have to decide how long they will be and pad them yourself.  It's a lot of work.
    Why not let PL/SQL do the things that only PL/SQL can do, and let SQL*Plus do the things it does well?  Have your procedure  or function return a cursor, which you can then diplay in SQL*Plus, or write a piplined function, that you can use in queries where SQL*Plus can format the results.
    The query you posted can eaisly be done directly from SQL*Plus, of course.  I assume you posted a very simple example, becuase your question is just about display.  If you don't absolutely need PL/SQL, don't use PL/SQL.  What I said above applies if you really do need PL/SQL.

  • Query output in APD shows zero values

    Hi ,
    I am using query output in APD . The query has got some calculated key figures for which the output result of the query in APD shows zero .Is there any way to resolve this  .
    regards,

    Hi,
    You need to store the source key figure value in a separate variable lets say v1 then **** the new variable v1 value to circular right, then remove the gaps, and then again shift V1 right by deleting trailing spaces and then finally copy the value in V1 to source or target key figure.
    Hope this helps.
    - Kiran

  • Remove comma in query output from Char used as KF

    Hello Friends,
    To be able to display a characteristic in a particular way I used formula variable and displayed it as Key Figure in the query output. By doing this I am getting the output in the required format, but only problem is that the value is being displayed with commas. As it is an order number, I want to display it without commas.
    I don't want to use VB as the query is to be published in web also.
    Please suggest if there is any way to achieve this.
    Thanks in advance.
    Praveen

    Hey Praveen, there's a few ways to skin this cat. The simplest method is to make sure that the user parameters in SU3 don't have commas for numbers. The problem is that this is a global setting so you won't get commas for other numbers in which you may want commas. Also, you'd have to make sure your replacement variable was defined as type "number". The other options include using VBA in BEx, and/or Table Interface in the Web. If you are using BW 3.5, you can use XSLT to render a table with and not have commas for that value by using the XML Query Result Set Item. Hope that helps,
    Prakash

  • BI server generating  query in a different way between two instances

    Hi All,
    We have executed a report in dev,test instances,BI server generated query in a different way in two instances where as dev BI server is on AIX operating system(recently we migrated from windows),test instance is on still on Windows environment.
    For a report below are the queries
    DEV(AIX)
    WITH
    SAWITH0 AS (select sum(T316025.SALES_QUOTA) as c1,
    T329697.DIVISION_DESC as c2,
    T329697.AREA_DESC as c3,
    T329697.TERRITORY_DESC as c4,
    case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end as c5,
    T150993.X_CONS_MAJOR_GROUP as c6,
    T66755.PER_NAME_ENT_YEAR as c7
    from
    W_DAY_D T66755 /* Dim_W_DAY_D_Common */ ,
    W_PRODUCT_D T67704 /* Dim_W_PRODUCT_D */ ,
    WC_SLX_DATA_F T316025 /* Fact_WC_SLX_DATA_F */ ,
    WC_CUSTOMER_HIERARCHY_D T329697 /* Dim_WC_Customer_Hierarchy_D_With_Error */ ,
    OBIEE_SECURITY_LOCATION_SALES T339204,
    W_PROD_CAT_DH T150993 /* Dim_W_PROD_CAT_DH_General */
    where ( T66755.ROW_WID = T316025.DAY_WID and T316025.CUSTOMER_HIERARCHY_WID = T329697.ROW_WID and T67704.ROW_WID = T316025.PRODUCT_WID and T67704.PROD_CAT2_WID = T150993.ROW_WID and T329697.TERRITORY_CODE = nvl(T339204.LOCATION , T329697.TERRITORY_CODE) and T329697.AREA_DESC = 'GROCERY AREA - EAST' and T329697.DIVISION_DESC = 'DOMESTIC SALES DIVISION' and T339204.USER_NAME = upper('Administrator') and case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end = 'JETRO CASH AND CARRY ENTERPRISES INC(10313)' and (T66755.PER_NAME_ENT_YEAR in ('2011', '2012')) and (T329697.TERRITORY_DESC in ('BOSTON', 'CHARLOTTE', 'FLORIDA', 'GREAT LAKES', 'MID-SOUTH', 'NEW YORK', 'WHITE ROSE')) )
    group by T66755.PER_NAME_ENT_YEAR, T150993.X_CONS_MAJOR_GROUP, T329697.TERRITORY_DESC, T329697.AREA_DESC, T329697.DIVISION_DESC, case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end )
    select distinct SAWITH0.c2 as c1,
    SAWITH0.c3 as c2,
    SAWITH0.c4 as c3,
    SAWITH0.c5 as c4,
    SAWITH0.c5 as c5,
    SAWITH0.c6 as c6,
    SAWITH0.c7 as c7,
    SAWITH0.c1 as c8
    from
    SAWITH0
    order by c1, c6
    Test(Windows)
    select distinct D1.c2 as c1,
    D1.c3 as c2,
    D1.c4 as c3,
    D1.c5 as c4,
    D1.c5 as c5,
    D1.c6 as c6,
    D1.c7 as c7,
    D1.c1 as c8
    from
    (select sum(T316025.SALES_QUOTA) as c1,
    T329697.DIVISION_DESC as c2,
    T329697.AREA_DESC as c3,
    T329697.TERRITORY_DESC as c4,
    case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end as c5,
    T150993.X_CONS_MAJOR_GROUP as c6,
    T66755.PER_NAME_ENT_YEAR as c7
    from
    W_DAY_D T66755 /* Dim_W_DAY_D_Common */ ,
    W_PRODUCT_D T67704 /* Dim_W_PRODUCT_D */ ,
    WC_SLX_DATA_F T316025 /* Fact_WC_SLX_DATA_F */ ,
    WC_CUSTOMER_HIERARCHY_D T329697 /* Dim_WC_Customer_Hierarchy_D_With_Error */ ,
    OBIEE_SECURITY_LOCATION_SALES T339204,
    W_PROD_CAT_DH T150993 /* Dim_W_PROD_CAT_DH_General */
    where ( T66755.ROW_WID = T316025.DAY_WID and T316025.CUSTOMER_HIERARCHY_WID = T329697.ROW_WID and T67704.ROW_WID = T316025.PRODUCT_WID and T67704.PROD_CAT2_WID = T150993.ROW_WID and T329697.TERRITORY_CODE = nvl(T339204.LOCATION , T329697.TERRITORY_CODE) and T329697.AREA_DESC = 'GROCERY AREA - EAST' and T329697.DIVISION_DESC = 'DOMESTIC SALES DIVISION' and T339204.USER_NAME = upper('Administrator') and case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end = 'JETRO CASH AND CARRY ENTERPRISES INC(10313)' and (T66755.PER_NAME_ENT_YEAR in ('2011', '2012')) and (T329697.TERRITORY_DESC in ('BOSTON', 'CHARLOTTE', 'FLORIDA', 'GREAT LAKES', 'MID-SOUTH', 'NEW YORK', 'WHITE ROSE')) )
    group by T66755.PER_NAME_ENT_YEAR, T150993.X_CONS_MAJOR_GROUP, T329697.TERRITORY_DESC, T329697.AREA_DESC, T329697.DIVISION_DESC, case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end
    ) D1
    order by c1, c6
    If we observe test query is very simple and easy to back track but in Dev it is appending like sawwith0,sawwith1 etc..looking difficult.
    Is there in any configuration to change to generate query like Test(with out SAWWITH0).
    NOTE:Any how results are same in both instances.
    Please help me to resolve this issue.
    Thank You,
    Anil Kumar.

    Anil,
    Are your database settings the same in both of the rpds dev and test?
    Check wether you didn't change anything to the default. Open your RDP double click on the Database in the physical layer and go to Feature you can check all the settings there
    Adil

Maybe you are looking for

  • Acrobat 7.0.9 and Reader 9 - Issues opening PDF in IE6

    I'm hoping someone can help.  All our users have Reader 9 installed as part of the corporate image.  Some of our users run Acrobat 7.0.9 as well.  For those users, we are experiencing issues where when we try to open a PDF in IE6.  We get the followi

  • Previous Executions Values Being Retained In The Next Execution In BPEL

    Hello Everbody, I am facing a very critical issue with the BPEL's on the Pre Production as well as Production environment and i kindly request for help from folks in the forum. Basically there are 3 different web services and each of the web service

  • Ffmpeg ERROR: audio conversion failed: Unknown encoder 'libmp3la

    While i use youtube-dl script with -x --audio-format mp3 option i get this error: ERROR: audio conversion failed: Unknown encoder 'libmp3lame' [bahaa@Bahaa ~]$ pacman -Qs lame local/lame 3.99.5-2 A high quality MPEG Audio Layer III (MP3) encoder loca

  • ST2540 and VxDMP

    Hi: I've a customer with the following config: V880 with 2 x F/C controller ST2540 with 2 x controller Solaris 10 U4 EIS DVD April 09 Storage Foundation 5.0 patched with EIS DVD April 09 For one reason or another, mpxio was not used. I created a 2540

  • No thumbnails in Theme Chooser for my created themes?

    I just upgraded to a new MBPro with Snow Leopard. I moved my Keynote themes from the old PowerBook (running Tiger) to the new laptop, and they all seem to work... except that in the Theme Chooser, where I had been seeing thumbnail previews of my user