How join the two query block with same field

sorry sir i am posting dublicate thread
i thought you not understand my question
sir i have two query block in report with same field
i try the link object but that creat now block not creat link withen query block
please give me idea
thank

Dear,
Use data link object.
Click at data link object then click on the fild in query block1 and drag it into the other query block data link will be created.
try it

Similar Messages

  • Can we implement the custom sql query in CR for joining the two tables

    Hi All,
    Is there anyway to implement the custom sql query in CR for joining the two tables?
    My requirement here is I need to write sql logics for joining the two tables...
    Thanks,
    Gana

    In the Database Expert, expand the Create New Connection folder and browse the subfolders to locate your data source.
    Log on to your data source if necessary.
    Under your data source, double-click the Add Command node.
    In the Add Command to Report dialog box, enter an appropriate query/command for the data source you have opened.
    For example:
    SELECT
        Customer.`Customer ID`,
        Customer.`Customer Name`,
        Customer.`Last Year's Sales`,
        Customer.`Region`,
        Customer.`Country`,
        Orders.`Order Amount`,
        Orders.`Customer ID`,
        Orders.`Order Date`
    FROM
        Customer Customer INNER JOIN Orders Orders ON
            Customer.`Customer ID` = Orders.`Customer ID`
    WHERE
        (Customer.`Country` = 'USA' OR
        Customer.`Country` = 'Canada') AND
        Customer.`Last Year's Sales` < 10000.
    ORDER BY
        Customer.`Country` ASC,
        Customer.`Region` ASC
    Note: The use of double or single quotes (and other SQL syntax) is determined by the database driver used by your report. You must, however, manually add the quotes and other elements of the syntax as you create the command.
    Optionally, you can create a parameter for your command by clicking Create and entering information in the Command Parameter dialog box.
    For more information about creating parameters, see To create a parameter for a command object.
    Click OK.
    You are returned to the Report Designer. In the Field Explorer, under Database Fields, a Command table appears listing the database fields you specified.
    Note:
    To construct the virtual table from your Command, the command must be executed once. If the command has parameters, you will be prompted to enter values for each one.
    By default, your command is called Command. You can change its alias by selecting it and pressing F2.

  • Get the Common from Two Internal Tables with same structure

    Hi ,
    I need to get the Common data from Two Internal Tables with same structure with using the looping method.
    For e.g.
    I have two internal table say ITAB1 and ITAB2.
    ITAB1 has values A,B,C,D,E,F
    ITAB2 has values A,H,B,Y,O
    Output at runtime should be : A,B

    Hi mohit,
    1. If u want to compare all fields,
       for matching purpose,
       then we can do like this.
    2.
    report abc.
    data : a like t001 occurs 0 with header line.
    data : b like t001 occurs 0 with header line.
    loop at a.
      LOOP AT B.
        IF A = B.
          WRITE :/ 'SAME'.
        ENDIF.
      endloop.
    ENDLOOP.
    regards,
    amit m.

  • How to assign the two values for constant (same key)

    How to assign the two values for constant (same key)
    CONSTANTS: c_pstkey TYPE  bschl VALUE '09',
               c_splgl  TYPE  umskz VALUE 'I',
               c_buzei  TYPE  buzei VALUE '001'.
    using BSCH1 again i have two asign vaue
    can you just let me know
    Edited by: sravya_se38 on Nov 23, 2010 12:14 AM

    You can create a structure for that constant .
    You can define in this way
    CONSTANTS : BEGIN OF c_pstkey,
                             01 TYPE bschl VALUE '01',
                             02 TYPE bschl VALUE '02',
                          END OF c_pstkey.
    and can access using...
    c_pstkey-01, c_pstkey-02 ........

  • How to Maintain two different prices for same material in different qty?

    Dear all,
    How to maintain two different prices for same material in different batch quantities in purchase order(ie.,info record)?
    (Vendor is supplying quantities in 2 different batches & also in different prices)
    Expecting valuable reply.
    Jeyakanthan

    In a PO you can create 2 items, and each item can be maintained with a different price in the conditions.
    In info record it is not possible to have different prices for the same period, except for scales.
    so if you have a price of e.g. 2 USD for 1000 kg and 1,90 USD for 2000 kg then you can maintain this in scales, but you still have to have 2 items in the PO so that each one can individually find its price.
    Alternative you can create contracts (as well with more than one item) to reflect the different prices and batches.

  • Two soa domain with same name "TestSOADomain" sharing same SOA schema ?

    I tried creating two soa domain with same name "TestSOADomain" (different path) sharing same SOA schema .However one domain came UP to Running mode and other domain going to AdminMode and "soa-infra" application of that domain is not active.
    I do want to understand can this be possible with SOA ,ie. two soa domain sharing same SOA schema ?
    If possible what are all the problems might come
    1. While executing soa composites with asyncronous behaviour ?
    2. How the polling services will work ?
    3. will the XREF_DATA table ROW_NUMBER column inserted uniquely while inserting data from two different domain into same SOA schema ?
    4. Other issues ?
    Thanks

    Each domain is expected to refer to its own unique database schema. Same SOA schema should not be shared by multiple SOA clusters/domains. It is technically possible though, I suppose, and still can run fine any one SOA environment at any given time with the other SOA environments/domains (sharing the same SOA schema) shutdown. It is not the general/recommended practice to share SOA schema across domains and there could be potential implications and unexpected behavior, particularly when the SOA environments pointing to the same schema are all running at a time.

  • Reflection - Two packages/classes with same name

    Hi There !
    I am in a situation and I need some help, if anyone can help me.
    I have two tools to work with different version of a server application. Now, the admin wants to have only one tool to work with both server app.
    The problem is that the server app has a jar file with the API to be used to access it. One jar for each version.
    Inside those jars files I have the same package and the same class ! But the implementation is diferent. So I will need to access one jar when accessing the old server app and another jar to access the new server app.
    I have no idea how to do it.
    I search arround google and I found that I can load a class at runtime and then with Reflection call its methods.
    I made a test app (simple, just 2 different jars with same package and class name just printing a Hello World and Bye World) and it worked very well.
    But when I tried to apply this to my code, I realize that one class need the reference of the other class...
    For example, I have a class named Server and other called ServerStatus.
    The Server class do the connection to the server and the ServerStatus get some server information. But the method that give me this information has a argument asking for an object of Server... like this:
    Server serv = new Server();
    serv.connect();
    ServerStatus servStat = new ServerStatus();
    servStat.getServerStatus(serv);I tried to do this with reflection but in the part that I need to invoke the method getServerStatus, I do not have the name of the class that is the argument (in this case Server).
    Something like this:
       Method  m = serverClass.getMethod("getServerStatus", new Class[] {?????.class});
             result = (Boolean)m.invoke(server, new Object[] {serverStatus});Do you have any ideiias to resolve this ?
    Or something different from reflection to access two different implementations with same package and class name ?
    If you need any other information, please ask me..
    Thank you so much !
    Regards,
    Thiago

    Thiago wrote:
    Hi.
    But now, how can I handle the object (because the newInstance() return a Object object.... not the class that I want (Server, for example)).
    When you declare a reference to be something more narrow than "Object" you're telling the compiler what methods and fields the referenced object supports. With a dynamically loaded class you can't do that at compile time, because the nature of the class isn't known until you load it at runtime.
    That's why it's very handy if you know that the class you are to load implements some interface which is known at compile time. Then you can access the object through a reference to that interface.
    Otherwise there's really no option but to handle the object through reflection. Find methods with getMethod() on the Class object and invoke them with Method.invoke().
    There are tricks to impose an interface onto a dynamically loaded class at runtime, but they are just neat ways of working through reflection.

  • Create two logical columns with same LTS mapping but diff filter conditions

    Hi,
    Problem:
    How to create two logical columns within same logical table mapped to same physical column but different filter conditions?
    I have a scenario where in,
    Physical layer columns
         - table1.employee
         - table1.emp_city
    I need a columns in logical layer:
    Logical layer - lt1.count_emp_delhi (counts distinct employees whose city_name = 'Delhi')
              lt1.count_emp_mumbai(counts distinct employees whose city_name = 'Mumbai')
    My approach:
    For Delhi column
    1. Create a logical column lt1.count_emp_delhi mapped to the physical column table1.employee
    2. Aggregate using countdistinct in aggregate tab.
    3. Edit the mapping condition
         3.1. Use the where clause and set table1.emp_city='Delhi'.
    For Mumbai column.
    Followed the same approach as above but in 3.1 if I change the condition to 'Mumbai', even the delhi column is populated with mumbai count which is ERRONEOUS
    Could some one please help?

    Hi,
    1. Create two alias tables for table1 in Physical Layer. Lets say TB_Mumbai and TB_Delhi
    2. Create a logical table in BMM layer (D1 Employee Cities )
    3. Drag and drop the employee & emp_city columns from both alias tables (TB_Mumbai and TB_Delhi ) into your newly created logical table.
    4. Now you can see two Logical Table Sources (TB_Mumbai and TB_Delhi )
    5. Now using Where condition, write the condition on each table
    NOTE: Don't write any condition on the Physical table Table1.
    Hope it helps you.
    Regards,
    Kalyan Chukkapalli
    http://123obi.com

  • Combine two Query Results with Rank

    Dear All,
    I am business analyst working DB for first time:
    I have two queries:
    1)
    select * from (select "CAFNo","ActionDate","ActionDetail", rank() over (partition by "CAFNo" order by "ActionDate") rnk,
    from "ABC"
    where "ActionDetail"
    like 'CRF successfully submitted and routed to Fulfillment Team%')
    where rnk=1
    Results in
    CAFNo","ActionDate1","ActionDetail"
    2)
    select * from (select "CAFNo","ActionDate","ActionDetail", rank() over (partition by "CAFNo" order by "ActionDate") rnk
    from "ABC"
    where "ActionDetail"
    like '%Customer ID%')
    where rnk=1
    Results in
    CAFNo","ActionDate2","ActionDetail"
    I would like to combine results of two as:
    CAF no, Actiondate1, actiondate2,ActionDetail
    I tried full outer join and other options but with no success. Please help
    Please share concept of joining the two results not the actual query.

    Actually, my query is not equivalent to original. I missed ActionDetail can be something like:
    'CRF successfully submitted and routed to Fulfillment Team A by Customer ID X'Then it fits both LIKE conditions. If such case of ActionDetail is possible then:
    with t as (
                select  *
                  from  (
                         select  1 weight,
                                 "CAFNo",
                                 "ActionDate",
                                 "ActionDetail",
                                 rank() over (partition by "CAFNo" order by "ActionDate") rnk
                           from  "ABC"
                           where "ActionDetail" like 'CRF successfully submitted and routed to Fulfillment Team%'
                  where rnk=1
               union all
                select  *
                  from  (
                         select  2 weight,
                                 "CAFNo",
                                 "ActionDate",
                                 "ActionDetail",
                                 rank() over(partition by "CAFNo" order by "ActionDate") rnk
                           from  "ABC"
                           where "ActionDetail" like '%Customer ID%'
                  where rnk=1
    select  "CAFNo",
            max(
                case weight
                  when 1 then "ActionDate"
                end
               ) "ActionDate1",
            max(
                case weight
                  when 2 then "ActionDate"
                end
               ) "ActionDate2",
            max(
                case weight
                  when 1 then "ActionDetail"
                end
               ) "ActionDetail1",
            max(
                case weight
                  when 2 then "ActionDetail"
                end
               ) "ActionDetail2"
      from  t
      group by "CAFNo"
    /SY.

  • Is it possible to install two SAP system with same SID but different instance numbers on one host?

    Is it possible to install two SAP system with same system ID (SID) but different instance numbers on one host?
    If yes, then how?
    If no, then why?
    Thanks in advance.
    Regards,
    Sarim

    Is it possible to install two SAP system with same system ID (SID) but different instance numbers on one host?
    Yes, it is possible. If one is CI (PAS) and the second one is an AS (AAS). In this case there will be only one database.
    If you are talking about two separate SAP systems with separate databases (Eg: A BI and an ECC) with the same SID then the problem will be with the database (Eg: Oracle)
    The database will be installed under /oracle/SID/112_64 (ORACLE_HOME) unless one database is running on 10 G and in that case the ORACLE_HOME will be /oracle/SID/102_64
    The next issue will be with the SAP file systems like /sapmnt/SID
    The most important problem will be with the switch to the sidadm and orasid users and the conflicts there. If there is a need to stop one of the SAP systems and if you do a switch to sidadm and issue a stopsap command which system will be stopped ?
    These are few of the many problems I can think of.
    So if we are talking about two separate systems with their own databases I would rule out the possibility of having two systems with the same SID.
    Regards
    RB

  • How to use Two main windows with in a page in script ?

    Hi any body explain me...
    How to use Two main windows with in a page in script ?
    with  header data in one main window,
    & Item data in other main window.

    HI..,
    u need to go for <b>SPLITTING THE MAIN WINDOW</b> !!!
    Main windows in page windows allow you to format text in multiple columns. Define an area in the page window, in which to position the main windows.
    Here is the procedure !!
    -->Create a page window and assign it to a page.
    Choose <b>Edit --> Main windows</b>.
    A dialog box appears.
    -->Enter values in the fields <b>Area width</b> and A<b>rea height</b> in accordance with the input guidelines for main windows.
    -->Enter values in the fields <b>Spacing</b> and Number in the <b>Horizontal group</b> if you want to use multiple columns. You can ignore the fields in the Vertical group.
    Determine how many columns and line areas are required for label printing. Then enter the corresponding values in the fields in the <b>Horizontal and Vertical groups</b>.
    -->The value in the field Left margin varies from main window to main window if multiple columns are used. The following applies:
    <b>
    Left margin of current column + Window width + Horizontal spacing = Left margin of next column</b>
    In label printing, the field Upper margin also varies from main window to main window:
    <b>
      Upper margin of current main window +  Window height + Vertical spacing = Upper margin of next main window</b>
    -->Enter a value in the field Start position.
    This is a counter. Enter a starting value which is equal to or greater than 1.
    -->The main windows are added to the list.
    -->Save your form.
    reward if it helps u...
    sai ramesh

  • Hi, my daughter wrote wrong paswords in my ipod touch and it is blocked.  It says it needs to be connected to itunes, but once its there it says the ipod is blocked with a passcode..the ipod is just blocked. what can I do?

    hi, my daughter wrote wrong paswords in my ipod touch and it is blocked.  It says it needs to be connected to itunes, but once its there it says the ipod is blocked with a passcode..the ipod is just blocked. what can I do?

    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                          
    If recovery mode does not work try DFU mode.                         
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings         
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • Tune the PL/SQL block with SQL_ID

    Hi There,
    I have found some recommendation in ADDM report as follows.
    "" Action
    Tune the PL/SQL block with SQL_ID "48trcns4mx5bk". Refer to the "Tuning
    PL/SQL Applications" chapter of Oracle's "PL/SQL User's Guide and
    Reference".
    Related Object ""
    can any one let me how to Tune the PL/SQL block with SQL_ID?
    looking forward.
    Db: 11.1.0.7
    OS: OracleLinux5-86*64
    Regards,
    Mohsin

    Hi,
    you can't tune a PL/SQL block directly. Instead, you'll need to profile it first (i.e. see how much time SQL statements inside it consume) using dbms_profiler or some other tool. If you find that the problem is that some SQL is called too frequently because of flawed PL/SQL logic, then you'll need to address that. Otherwise, you'll need to take the top time consuming statement(s) and tune it (them).
    Best regards,
    Nikolay

  • Join the two internal table

    Hi Guys,
    I have two internal tables with same structure, ITAB1 is having 100 records and ITAB2 is having 150 records, i need to club two internal tables into ITAB3.
    I hope, we can loop one internal table append record by record.
    Is any other way, can we club two internal tables.
    Thanks,
    Gourisankar.

    Hi,
    You can use INSERT LNES OF ITAB1 INTO ITAB3 and afterwards do the same with ITAB2.
    Regards, Gerd Rother

  • To join the sql query

    Hi All
    Following query is to monitor users tablespace and temp tablesapce. How do I can join these two query as a single query. Kindly assist.
    Users tablespace mon:
    ==============
    select TT.tablespace_name,
    round(TOTAL) TOTAL,
    round(FREE) FREE,
    round(TOTAL - FREE) USED,
    round(100*(TOTAL - FREE)/TOTAL) PCT_USED
    from
    (select tablespace_name, sum(bytes)/1024/1024 FREE
    from dba_free_space group by tablespace_name) FR,
    (select tablespace_name, sum(bytes)/1024/1024 TOTAL
    from dba_data_files group by tablespace_name) TT
    where TT.tablespace_name = FR.tablespace_name(+);
    Temp tablespace mon:
    ===============
    select TT.tablespace_name,
    round(TOTAL) TOTAL,
    round(FREE) FREE,
    round(TOTAL - FREE) USED,
    round(100*(TOTAL - FREE)/TOTAL) PCT_USED
    from
    (select tablespace_name, sum(bytes_free)/1024/1024 FREE
    from v$temp_space_header group by tablespace_name) FR,
    (select tablespace_name, sum(bytes)/1024/1024 TOTAL
    from dba_temp_files group by tablespace_name) TT
    where TT.tablespace_name = FR.tablespace_name(+);

    select TT.tablespace_name,
    round(TOTAL) TOTAL,
    round(FREE) FREE,
    round(TOTAL - FREE) USED,
    round(100*(TOTAL - FREE)/TOTAL) PCT_USED
    from
    (select tablespace_name, sum(bytes)/1024/1024 FREE
    from dba_free_space group by tablespace_name) FR,
    (select tablespace_name, sum(bytes)/1024/1024 TOTAL
    from dba_data_files group by tablespace_name) TT
    where TT.tablespace_name = FR.tablespace_name(+)
    UNION
    select TT.tablespace_name,
    round(TOTAL) TOTAL,
    round(FREE) FREE,
    round(TOTAL - FREE) USED,
    round(100*(TOTAL - FREE)/TOTAL) PCT_USED
    from
    (select tablespace_name, sum(bytes_free)/1024/1024 FREE
    from v$temp_space_header group by tablespace_name) FR,
    (select tablespace_name, sum(bytes)/1024/1024 TOTAL
    from dba_temp_files group by tablespace_name) TT
    where TT.tablespace_name = FR.tablespace_name(+);

Maybe you are looking for

  • Looking for Standard SAP report

    Hello forum, Can some one tell me if there is a standard SAP report that would compare or can be used to compare a delivery order with a sales order and show the changes made in terms of quantity? I am looking for the report name Thanks in advance, K

  • Problem with date convert ion

    Hi, I want to convert the following string in to date.I am using the following code .But I am getting ParseException.      String utc="Tue, 13 Jan 2009 12:56:34 UTC ";      java.text.SimpleDateFormat simpleDF = new java.text.SimpleDateFormat("ddd, dd

  • How to put character "ñ" on SMB domain?

    Hi, my name is Olmedo. I would like to know if somebody put the character ñ (enie) in the domain name for SMB on MacOS X Server. I have carried out the changes of the Latin page codes 850 and 851 and it doesn't accept the field the character in Spani

  • Class running in JVM?

    Is there a way to determine what class is currently running in a JVM/process, from outside the JVM/process? Given there are, say, 20 JVM instances running, how can I determine what is running in each instance?

  • What is the proper config for the Airport Extreme when a Voice over IP device is between the cable modem and the router.

    What is the proper config for the Airport Extreme when a Voice over IP device is between the cable modem and the router.  Its a VoIPo device. The cable modem is connected to the VoIP WAN port and the LAN port on the device feeds the Airport Extreme.