Merging the output of two queries in to one

Dear experts,
There are two reports generated with sap queries.
I want some of the fields of first query to be displayed in to second.
Is there any option for merging two queries.
Where is the request of the query saved.
How to do the changes in the query and how to transport it after changes.
How to find the user group and infoset of the query.
Please help me.

Please serach in this forum, u can find lot of threads
/people/shafiq.rehman3/blog/2008/06/16/sap-adhoc-query-sq01-sq02-sq03

Similar Messages

  • How do I MERGE the purchases of two iTunes accounts into one Family Share?

    We have purchased many apps via two iTunes accounts.  How do we merge these purchases into on Family Share account

    Hi MacHead2010,
    I am not quite sure exactly what you mean by your question. It is not possible to merge two iTunes Store accounts. See this article for reference -
    Frequently asked questions about Apple ID - Apple Support
    Using Family Sharing, however, does allow all members of a Family Sharing group to use the content such as music, apps, etc on each other's devices.
    See this article for how to set up Family Sharing -
    OS X Yosemite: Set up Family Sharing
    This article will tell you what content can be shared -
    Which purchased content can I share using Family Sharing - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • Map the Output of Two BLT's to an iGrid?

    Hi all,
            Can i map the the output of two BLT's to one iGrid. Is it possible??
    Thanks,
    Sushma.

    The iGrid, as well as all of the applets, can only be fed by the results of a <b>single</b> query template.  Since an XacuteQuery template may only call <b>one</b> transaction, then there would be no way to have the iGrid call your two current BLS transactions.  An AggregateQuery calling two XacuteQuery templates that point to each of your transactions would work only if the two datasets were the same shape (meaning that the document columns from each trx were identical), but I would encourage you to create an additional transaction that calls your current two.  This way you can use each one independently as well as together, providing you with the benefits of reusability.  The iGrid will be able to merge two separate Rowset documents together if they are the same, sort of like how a union works with a relational database query.
    Regards,
    Jeremy Good

  • How do you merge the data of two MIDI regions?

    How do you merge the data of two MIDI regions into one MIDI region without using copy and paste functions in the piano roll editor?

    Sorry - didn't make myself clear. The glue tool would be no good here. I meant that I wanted, for example, to merge the MIDI contents of two regions that are perhaps on different tracks but play back at the same time, i.e. I want to add the 2nd region's MIDI to the 1st region's MIDI, but without having to go into the piano roll editor and cut and paste the data.

  • How to merge the outputs of several jobs?

    We have some ECC6 jobs that have some outputs (reports)  that we want to merge the outputs into one report.
    The problem is that how to merge them, then how to email it to some parties?
    Thanks for your help.

    Is there any way to achieve this by configuring?
    I look into SQ00, SQ01, ... SQVI, etc. How do you think about them? The problem is that the output is not written into tables?
    Thanks!

  • Merging the files in two folders

    Is there any way to merge the files in two folder? The copy command replaces existing files, but I would like to merge folders so that different versions are saves (as 1, 2, 3) or the most recent is saved. (Like Windows Explorer does.)

    Not in the Finder.
    You can try a 3rd party tool like http://mac.softpedia.com/get/System-Utilities/Folder-Merge.shtml
    Windows doesn't do either of those things, by the way - the version you are copying to the destination will always try and overwrite, no matter which is newer.

  • I accidentally merged the events on in my Iphoto into one event.  Is there a way to unmerge ?

    I accidentally merged the events on in my Iphoto into one event.  Is there a way to unmerge ?

    Restore your backup - the reason you have a backup is to recover from errors made by software, hardware and humans - use it
    Short of that the best you can do is use the autosplit selected event command in iPhoto
    LN

  • How do you Select data from two tables with similar data amd merge the output together.

    I have two Tables containing Sales Data. I want to read the Table a sort by date and accumulate dollars by order date. Then I want to read the second table and accumulate these dollar amounts by date and then merge the records together so that I gave 1 row
    with amounts for type A and amounts for type b.
    Here are the tables I am looking at.
    Select Cast(J.Order_Date As Varchar(11))) As [Order Date]
              ,Sum(Case when Sales_Code like '%Comm%' then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [Job Comm]
              ,Sum(Case when Sales_Code = '5-Day' then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [Job Auto]
              ,Sum(Case when Sales_Code like '%Auto%" then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [Job Auto]
              ,Sum(Case when Sales_Code = '' then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [Job Fixed]
              ,Sum(Case when Sales_Code = 'XX' then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [SO Comm)
              ,Sum(Case when Sales_Code = 'YY' then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [SO Auto)
              ,Sum(Case when Sales_Code = 'ZZ' then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [SO Fixed)
    from [PRODUCTION].dbo.Job As J
    union all
    Select Cast(SH.Order_Date As Varchar(11))) As [Order Date]
              ,Sum(Case when Sales_Code like '%Comm%' then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [SO Comm]
              ,Sum(Case when Sales_Code = '5-Day'     then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [SO Auto]
              ,Sum(Case when Sales_Code like '%Auto%" then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [SO Auto]
              ,Sum(Case when Sales_Code = ''          then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [SO Fixed]
              ,Sum(Case when Sales_Code = 'XX' then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [Job Comm)
              ,Sum(Case when Sales_Code = 'YY' then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [Job Auto)
              ,Sum(Case when Sales_Code = 'ZZ' then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [Job Fixed)
    from [PRODUCTION].dbo.SO_Detail As SD
    Inner Join [PRODUCTION].dbo.SO_Header As SH
        on SD.Sales_Order = SH.Sales_Order
    Group by J.Order_Date
    Order by J.Order_Date Desc
    Looking for output like
    Order Date   Job Comm   Job AUto   Job Fixed    SO Comm  SO AUto  SO Fixed
    Mar-11-2014    100.00     250.00       50.00     200.00   300.00    400.00
    Mar-10-2014    500.00     340.00        0.00     110.00   400.00    500.00
    Mar-09-2014    600.00     333.00       56.00     210.00   500.00    300.00
    Thanks for your help
    SWProduction

    Seeing the output it looks like what you need is this
    select COALESCE(p.[Order Date],q.[Order Date]) AS [Order Date],
    COALESCE([Job Comm],0) AS [Job Comm],
    COALESCE([Job AUto],0) AS [Job AUto],COALESCE([Job Fixed],0) AS [Job Fixed],COALESCE([SO Comm],0) AS [SO Comm],COALESCE([SO AUto],0) AS [SO AUto],COALESCE([SO Fixed],0) AS [SO Fixed]
    from
    Select Cast(J.Order_Date As Varchar(11))) As [Order Date]
    ,Sum(Case when Sales_Code like '%Comm%' then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [Job Comm]
    ,Sum(Case when Sales_Code = '5-Day' then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [Job Auto]
    ,Sum(Case when Sales_Code like '%Auto%" then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [Job Auto]
    ,Sum(Case when Sales_Code = '' then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [Job Fixed]
    ,Sum(Case when Sales_Code = 'XX' then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [SO Comm)
    ,Sum(Case when Sales_Code = 'YY' then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [SO Auto)
    ,Sum(Case when Sales_Code = 'ZZ' then (J.Order_Quantity * J.Unit_Price) Else 0 end) As Decimal(11,2) As [SO Fixed)
    from [PRODUCTION].dbo.Job As J
    )p
    full join
    Select Cast(SH.Order_Date As Varchar(11))) As [Order Date]
    ,Sum(Case when Sales_Code like '%Comm%' then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [SO Comm]
    ,Sum(Case when Sales_Code = '5-Day' then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [SO Auto]
    ,Sum(Case when Sales_Code like '%Auto%" then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [SO Auto]
    ,Sum(Case when Sales_Code = '' then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [SO Fixed]
    ,Sum(Case when Sales_Code = 'XX' then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [Job Comm)
    ,Sum(Case when Sales_Code = 'YY' then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [Job Auto)
    ,Sum(Case when Sales_Code = 'ZZ' then SD.Ext_Amt Else 0 end) As Decimal(11,2) As [Job Fixed)
    from [PRODUCTION].dbo.SO_Detail As SD
    Inner Join [PRODUCTION].dbo.SO_Header As SH
    on SD.Sales_Order = SH.Sales_Order
    Group by J.Order_Date
    )q
    on p.[Order Date] = q.[Order Date]
    Order by COALESCE(p.[Order Date],q.[Order Date]) Desc
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to download the output of two reports in WebTemplate into excel sheet?

    How to download the output of webtemplate which consists of two reports in one  Web Template into same Excel sheet?

    hi sunil,
    here is the HTML code for 'export to excel'
    <!-- Display Export Excel--->
    <td class="SAPBEXNavLine"> <SAP_BW_TEXT program="SAPLRRSV" key="T72">" src="Mime/BEx/Icons/S_X_XLS.gif" border=0 ></td>
    you can also use BEx download scheduler to download the precalculated webtemplate report to excel sheet.
    Check the link below.
    https://websmp104.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700000401962004E
    i think this will help u
    regards,
    sindhu.

  • Help in merging the output rtf/documents reports

    Hi,
    I am working with XML pub tool for a user requirement that 2 output reports(rtf documents) were genated using XML processor from 2 rtf templates, XML data files etc. No I need to merge the 2 output rtf/doc reports . Is there any function in XML publisher so that I can merge these output reports as one report.(Same as merging 2 documents in microsoft word)
    Thanks
    Raj

    You can merge/append 2 documents with a third party tools wihtout using XMLP publisher.
    HTH
    Shaun S

  • Is there a way to combine (merge) the contents of two directories in Finder?

    In Finder, under Favorites, I have two similar directories, one labeled Documents, and the other, with a house icon, labeled with my name.  I think I imported the latter from my old Windows computer when I was a Mac neophyte.  There are many duplicate subdirectories, and many duplicate files, but they are not exact duplicates.  Is there an easy  way to merge the two directories so that all my documents are in the Documents directory?

    Your home folder (with the house icon) will have by default several subfolders, and "Documents" is one of them. The Home folder stores all files used by your user account, inclusing music, photos, movies, etc., the "Documents" folder will document like files, databases, text documents, ...
    There is no problem to move all fies from your Home Folder to the "Documents" folder, but I would keep the standard folders "Downloads","Movies", "Pictures", "Music", "Public". These folders are the default locations, where applications will be looking for files by default, if no previous location has been set up.

  • Why are two queries better than one

    I'm trying to help out our developers who are struggling with the performance of a very simple select statmenent that for some reason is exhibiting some very inexplicable results.
    I'll show the SQL as a single statement first.....
    select * from transaction1 t where t.hid in (select distinct h.hid from history1 h,filter1 f where h.fid = f.fid and f.match='value');
    transaction 1 has 250k records, history1 has about 100k as does filter1. We know generally the subselect will only return a total of half a dozen or less records (only 1 in our testing here).
    Running the above query takes around 7 seconds.
    Changing this to a with clause.....
    WITH a as (select distinct h.hid from history1 h,filter1 f where h.fid = f.fid and f.match='value') select * from transaction1 t where t,hid in (select a.hid from a);
    and the runtime drops to 3 seconds. But then re-running the first statement again also now takes 3 seconds (so I guess there's some caching going on there).
    Now what really puzzles is if we split this into two queries.....
    select distinct h.hid from history1 h,filter1 f where h.fid = f.fid and f.match='value';
    This takes .1 of a second,
    select * from transaction1 t where t.hid in (12345);
    And this takes .1 of a second.
    So why when run seperately are they so fast, yet combined they take so long. I'm a bit baffled by this. We've rewritten the same SQL in half a dozen different ways with the same result and also done the same thing with other tables as well. Is it an optimisation issue?

    Appologies for not following protocol, my first time posting on here.
    Oracle 10g clustered.
    We have limited access as it's a customers server, but the explain plan comes back as....
    PLAN_TABLE_OUTPUT
    Plan hash value: 898894568
    | Id  | Operation            | Name              | Rows  | Bytes | Cost (%CPU)|Time     |
    PLAN_TABLE_OUTPUT
    |   0 | SELECT STATEMENT     |                   | 49553 |    37M|  7075   (2)|00:01:25 |
    |*  1 |  HASH JOIN RIGHT SEMI|                   | 49553 |    37M|  7075   (2)|00:01:25 |
    |   2 |   VIEW               | VW_NSO_1          | 26131 |   331K|   476   (4)|00:00:06 |
    |*  3 |    HASH JOIN         |                   | 26131 |   791K|   476   (4)|00:00:06 |
    PLAN_TABLE_OUTPUT
    |*  4 |     TABLE ACCESS FULL| FILTER1           | 26131 |   484K|   246   (4)|00:00:03 |
    |   5 |     TABLE ACCESS FULL| HISTORY1          |   104K|  1225K|   227   (3)|00:00:03 |
    |   6 |   TABLE ACCESS FULL  | TRANSACTION1      |   199K|   150M|  6593   (1)|00:01:20 |
    PLAN_TABLE_OUTPUT
    Predicate Information (identified by operation id):
       1 - access("T"."TID"="$nso_col_1")
       3 - access("H"."HID"="F"."ID")
       4 - filter("F"."MATCH"='value')
    20 rows selectedI'll admit, I'm not completely clear on what I'm reading here, other than the fact there are some big differences in the timing values
    We don't have privaleges to run trace, so I'm a bit stuffed there as I'm on the clients site, however I will get my developers to try this on our local server.
    Edited by: user1410957 on 15-Sep-2009 06:14

  • How to Merge the Contents of Two Folders in Lion, Keeping the Newer Versions of Duplicate Files.

    Select and copy all the contents of the folder containing the newer files.  Paste the files ONTO the folder containing the older files.  The unique files will be copied into the older folder without further ado.  For the duplicates, a window will appear warning that a file with the same name already exists in the older folder.  Check the "Apply to All" box and click on the Replace button, not the Skip button.  These steps will merge all the files in the newer folder into the older folder, replacing the duplicates with the copies from the newer folder.
    Unfortunately, the only information that the warning window provides about the duplicates is their common name, not sizes, dates, or times.  These steps worked for me because I knew for certain that all the newer files were in one folder.

    Great, I just lost 10 GB of data thanks to OSX folder merge... because appaerantly I should have known better not to keep a subfolder inside my folder I was trying to merge
    I can not beleive more people don't have a problem with this. Merge contents in Lion does NOT merge contents if 1 or more of those supposed "contents" is a subfolder
    Merge contents of two folders only works for files, it does NOT work for subfolders!!!!
    Can we please get this acknowledged as a bug that needs fixing?
    EXAMPLE:
    Drive1 / Folder1
                   - text1.txt
                   - text2.txt
                   - / subfolder / text3.text
    MERGE TO
    Drive2 / Folder1
                   - text1.txt  (this gets updated / merged)
                   - text2.txt  (this gets updated / merged)
                   - / subfolder /
                             - text.txt
                             - text2.txt     (this should get text3.txt merged into it, from Drive1, but instead this subfolder is REPLACED, and NOT MERGED!!)
    Why would i want to replace a folder if I'm trying to merge it!?
    Almost 2013 and OSX still cant merge a folder? unbelievable

  • How to merge the contents of two Photo Booths?

    Hello.  We have two Macbooks (Old + Existing).  Both are/were updated to Maverick.  However, I have restored the Old Macbook back to original (Snow Leopard) in order to sell.  I manually took off files as well as doing a Time Machine backup. 
    I would like to add all the photos and videos from Photo Booth on the Old Macbook into my Existing Macbook.
    Is this possible either a. through a specific file in Time Machine (I do NOT wish to replace the Existing with the Old.  This is a merger.) or b. with the Photo Booth library I copied onto an external harddrive?  However, this is one 1.75gb file with the Photo Booth icon (a film strip) rather than separate photo files.  I am unsure how to access individual photographs or videos.  I was hesitant to open it up in case it negatively affected the Existing Photo Booth.
    Thanks for any assistance.

    Great, I just lost 10 GB of data thanks to OSX folder merge... because appaerantly I should have known better not to keep a subfolder inside my folder I was trying to merge
    I can not beleive more people don't have a problem with this. Merge contents in Lion does NOT merge contents if 1 or more of those supposed "contents" is a subfolder
    Merge contents of two folders only works for files, it does NOT work for subfolders!!!!
    Can we please get this acknowledged as a bug that needs fixing?
    EXAMPLE:
    Drive1 / Folder1
                   - text1.txt
                   - text2.txt
                   - / subfolder / text3.text
    MERGE TO
    Drive2 / Folder1
                   - text1.txt  (this gets updated / merged)
                   - text2.txt  (this gets updated / merged)
                   - / subfolder /
                             - text.txt
                             - text2.txt     (this should get text3.txt merged into it, from Drive1, but instead this subfolder is REPLACED, and NOT MERGED!!)
    Why would i want to replace a folder if I'm trying to merge it!?
    Almost 2013 and OSX still cant merge a folder? unbelievable

  • Getting the output of two different sqls in analysis

    Hi,
    Please consider the scenario:
    I have to get the division value of two diffrent sqls in my analysis. The sqls will look like:
    1st SQL: SELECT DISTINCT <alias name1>.<col1>
    ,<alias name1>.<col2>,<alias name1>.<col3>,<alias name1>.<col4>
    FROM Table1 <alias name1>, Table2 <alias name2>, Table 3<alias name3>
    WHERE
    <alias name3>.<col2>= <alias name2>.<col2>    // joining condition
    AND <alias name3>.<col3>= <alias name1>.<col1>    // joining condition
    AND <alias name2>.<col1>= 'value1'
    AND <alias name2>.<col4>= 'value2'
    2nd sql: SELECT DISTINCT <alias name1>.<col1> FROM Table1 <alias name1>
    WHERE <alias name1>.<col4>= 'value2'
    The 1st sql has joining between 3 tables. and the 2nd SQL has no joining. whenever I drag and drop the columns with respect to the two sqls separately. it gives correct output. But it does not give me correct output when i try to do it together as all the tables are joined.
    The sql which works as 2nd sql is:
    SELECT DISTINCT <alias name1>.<col1>
    FROM Table1 <alias name1>, Table2 <alias name2>, Table 3<alias name3>
    WHERE
    <alias name3>.<col2>= <alias name2>.<col2>    // joining condition
    AND <alias name3>.<col3>= <alias name1>.<col1>    // joining condition
    AND <alias name2>.<col4>= 'value2'
    I need my 2nd sql to give me output without the join conditions of 1st sqls. how can I achieve this?
    Please help. I need it urgently.
    Thanks in advance..

    hi,
    I have tried by creating a separate alias for table1. But that is not working. alias is giving me joined output..
    Can you suggest me any other way to do it?
    Thanks

Maybe you are looking for

  • File properties... version, description, etc...

    Is there a way to access the file properties on windows systems? For example if you right click on a file you can get the Application Name, Description, Version, etc.... Is there a java API that supports this? Also do unix systems have similar featur

  • Dialog help please

    When i press the calculate button it will calculate a price depending on the options chosen and show the results in an OptionDialog. I need help with the two buttons (New Quote and Close), I want it so that if i press New Quote it will return to the

  • Adding  a logo to standard report in the SPRO

    Hi all can we add a logo through SPRO for reports ME2N and ME4N if yes please let me knwo the process thanks in advance

  • AD Replication error 5: Access is denied or 2146893022: target principal name is incorrect

    Hello, I have DC1(fsmo role holder) and DC2 which were replicating.  I ran windows update on DC1 and rebooted which it had not done in months.  When it came back up  I could run repadmin /showrepl successfully on DC1.  However when running on DC2 I g

  • A question about select where date =

    I want to select data from a table which has a date column and has the time format like "2009-11-30 00:00:00.0". I try using the sql-script as follow but failed. select * from mytable where begin_date = to_date ('2009-11-30', 'yyyy.mm.dd '); Someone