Help to Merge SQL into single

Hi All,
I am using Oracle 11g. I have SQL Query which has two select clause and comibined using union clause.
Execution of query takes more time to run
Pls share me your ideas to merge into single SQL
SELECT t1.REC_ST,
       t1.VERSION_NO,
       t1.ROW_TS,
       t1.USER_ID,
       t1.EFFECTIVE_DT,
       t1.CREATE_DT,
       t1.MIN_INT_AMT,
       t1.ABSOLUTE_RATE,
       t1.WAIVER_AMT,
       t1.DRCR_IND,
       t1.INDEX_RATE_ID,
       t1.DEPOSIT_ACCT_INT_ID,
       t1.DEPOSIT_ACCT_ID,
       t1.OVR_FG,
       t1.ACCRUAL_BAL_BASIS_TY,
       t1.ACCRUAL_BASIS_TY,
       t1.MARGIN_RATE,
       t1.DEPOSIT_PROD_INT_ID,
       t1.MIN_RATE,
       t1.ACCRUAL_FREQ_VALUE,
       t1.ACCRUAL_FREQ_CD,
       t1.MAX_RATE,
       t1.RATE_STRUCT_CD,
       t1.INDEX_RATE,
       t1.DEPOSIT_ACCT_INT_HIST_ID,
       t1.MARGIN_TYPE_CD,
       t1.MARGIN_BAL_BASIS_TY,
       t1.INT_RATE_TY,
       t2.INDEX_NM AS INDEX_RATE_NM,
       NULL AS PROD_INT_HIST_ID
  FROM DP_ACCT_INTEREST_HISTORY t1,
       INDEX_RATE t2
WHERE t1.INDEX_RATE_ID = t2.INDEX_RATE_ID (+)
   AND t1.OVR_FG = 'Y'
UNION
SELECT t1.REC_ST,
       t1.VERSION_NO,
       t1.ROW_TS,
       t1.USER_ID,
       t1.EFFECTIVE_DT,
       t1.CREATE_DT,
       t1.MIN_INT_AMT,
       t1.ABSOLUTE_RATE,
       t1.WAIVER_AMT,
       t1.DRCR_IND,
       t1.INDEX_RATE_ID,
       t2.DEPOSIT_ACCT_INT_ID,
       t2.DEPOSIT_ACCT_ID,
       t2.OVR_FG,
       t1.ACCRUAL_BAL_BASIS_TY,
       t1.ACCRUAL_BASIS_TY,
       t1.MARGIN_RATE,
       t2.DEPOSIT_PROD_INT_ID,
       t1.MIN_RATE,
       t1.ACCRUAL_FREQ_VALUE,
       t1.ACCRUAL_FREQ_CD,
       t1.MAX_RATE,
       t1.RATE_STRUCT_CD,
       t1.INDEX_RATE,
       t1.PROD_INT_HIST_ID AS DEPOSIT_ACCT_INT_HIST_ID,
       t1.MARGIN_TYPE_CD,
       t1.MARGIN_BAL_BASIS_TY,
       t1.INT_RATE_TY,
       t3.INDEX_NM AS INDEX_RATE_NM,
       t1.PROD_INT_HIST_ID
  FROM PRODUCT_INTEREST_HISTORY t1,
       DEPOSIT_ACCOUNT_INTEREST t2,
       INDEX_RATE t3
WHERE t1.PROD_INT_ID = t2.DEPOSIT_PROD_INT_ID
   AND t2.OVR_FG = 'N'
   AND t1.INDEX_RATE_ID = t3.INDEX_RATE_ID (+)Thanks & Regards
Sami

Hi All,
Sorry i have missed out..
Explain Plan
Plan
SELECT STATEMENT  ALL_ROWSCost: 56,570  Bytes: 191,285,367  Cardinality: 1,188,177                         
    12 SORT UNIQUE  Cost: 56,570  Bytes: 191,285,367  Cardinality: 1,188,177                     
        11 UNION-ALL                 
            3 HASH JOIN RIGHT OUTER  Cost: 14,252  Bytes: 190,997,842  Cardinality: 1,186,322             
                1 TABLE ACCESS FULL TABLE BENCHMARK.INDEX_RATE Cost: 3  Bytes: 588  Cardinality: 28         
                2 TABLE ACCESS FULL TABLE BENCHMARK.DP_ACCT_INTEREST_HISTORY Cost: 14,243  Bytes: 166,085,080  Cardinality: 1,186,322         
            10 HASH JOIN  Cost: 135  Bytes: 287,525  Cardinality: 1,855             
                6 TABLE ACCESS BY INDEX ROWID TABLE BENCHMARK.DEPOSIT_ACCOUNT_INTEREST Cost: 126  Bytes: 10,800  Cardinality: 540         
                    5 BITMAP CONVERSION TO ROWIDS     
                        4 BITMAP INDEX SINGLE VALUE INDEX (BITMAP) BENCHMARK.DEP_ACCT_INT_OVR_FG_IDX
                9 HASH JOIN RIGHT OUTER  Cost: 9  Bytes: 60,750  Cardinality: 450         
                    7 TABLE ACCESS FULL TABLE BENCHMARK.INDEX_RATE Cost: 3  Bytes: 588  Cardinality: 28     
                    8 TABLE ACCESS FULL TABLE BENCHMARK.PRODUCT_INTEREST_HISTORY Cost: 5  Bytes: 51,300  Cardinality: 450      thanks & Regards
Sami

Similar Messages

  • Acrobat 9 Pro Merge Files Into Single PDF

    Just wanted to know if there's a way on Acrobat 9 Pro,i can select a folder using Merge Files Into Single PDF and have it merge each of the subfolders in the folder into separate single PDFs and have then retain the names of their corresponding subfolders? At the moment i'm having to do one folder at a time and then name them.
    Any help would be great

    Hi Bill
    Thanks so very much - you have solved the problem.
    I tried Document > Insert Pages and that worked.
    I then ran the "Repair" feature on Adobe which installed a few updates and I am now also able to merge pdf's by using the "Combine" feature and all the pages show the text/info.
    Thanks again for your help, it is very much appreciated.
    Thank you also to Apoorv for your assistance.

  • Batch Merge Files Into Single PDF

    Just wanted to know if there's a way on Acrobat 9 Pro,i can select a folder using Merge Files Into Single PDF and have it merge each of the subfolders in the folder into separate single PDFs and have then retain the names of their corresponding subfolders? At the moment i'm having to do one folder at a time and then name them.
    Any help would be great
    [Thread moved from comments forum to Acrobat forum]

    Hello again. I took the long weekend off, so haven't replied for a while.
    While trying to set up a few documents out of the package I wanted to create, I discovered that there
    is only one file that is causing the problem.
    The biggest problem is that it is a confidential financial file, and I'm loathe to put it up on the web.
    I'm going to try to re-create the file without the confidential part, then send it to this forum. I can't
    figure out why it should cause problems when all the others don't and they have all been created by
    the same person with the same version of Office.
    So thanks for your help so far. I really appreciate the quick response from a couple of you.  I will get back to you.

  • Distorted text when trying to merge files into single pdf

    I am trying to merge several pdf documents into a single pdf. The pages are all distorted with missing words and random characters appearing here and there. I have combined these pages successfully using 'Assemble files into a PDF package' so I know the files are okay. Trying 'Merge files into a single pdf' is what creates the problem. I have tried this on Acrobat 8.0 and also 10. It is the same in both cases.
    Help please!

    Hello again. I took the long weekend off, so haven't replied for a while.
    While trying to set up a few documents out of the package I wanted to create, I discovered that there
    is only one file that is causing the problem.
    The biggest problem is that it is a confidential financial file, and I'm loathe to put it up on the web.
    I'm going to try to re-create the file without the confidential part, then send it to this forum. I can't
    figure out why it should cause problems when all the others don't and they have all been created by
    the same person with the same version of Office.
    So thanks for your help so far. I really appreciate the quick response from a couple of you.  I will get back to you.

  • Merge package into single PDF file

    Hi, I am using Acrobat Professional 8 with Windows Vista.
    How do I merge a PDF package into a single PDF file? Basically, I would like to convert a pdf package file into a "regular" PDF file. Thanks!
    - Patrick

    No solution here, but sounds like my similar problem. I converted a number of individual files to pdf format in hopes of converting it all to one pdf report. I can not seem to figure it out. I looked for the insert page approach but those items do not appear on the Acrobat 8 package. What am I doing wrong? If you are given a solution, please let me know. This effort has been ridiculous, there must be an easy solution that I am overlooking.

  • Merging files into single PDF

    This question was posted in response to the following article: http://help.adobe.com/en_US/acrobat/using/WS58a04a822e3e50102bd615109794195ff-7edc.w.html

    Re "Insert one pdf into another- You can also add an existing file to an open PDF. Drag the file icon directly into position in the Page Thumbnails panel in the navigation pane."
    Is there a way you can disable this function?
    Thank you

  • Why is Merge into single pdf using InDesign CS3 and not CS4 ?

    I'm new to this so the question may be trivial, but it beats me:
    I've created some InDesign files in CS4 and want to combine them into one PDF. So I opened Acrobat 9 Pro and
    navigated to "Merge files into single pdf". I chose the CS4 InDesign files to Add and clicked the Combine Files button.
    BUT, this starts up InDesign CS3 and not InDesign CS4 and returns a pop-up saying "unidentified error".
    Why is starting CS3 InDesign and not CS4, and what is the "unidentified" error ! ?
    As background I intially installed CS3 and then updated to CS4, leaving the CS3 applications intact. When I initially
    bought CS3, just before CS4 was released I may have created pdfs from InDesign as an experiment, but it is possible I have not done this
    since upgrading to CS4.
    Thanks for any help

    Thanks Michael, I was not aware of quality issues. Actually this is not really significant for my usage this time. What I'm doing is just using ID to capture notes/images/links etc in several free format ID documents. I then planned to merge them quickly into one pdf using Acrobat. I can easily shuffle the file order around to create a handy portable pdf reference document with the Merge feature.
    Doing something similar from ID seemed to me to require me to create pdfs for each ID doc and them to merge them in Acrobat. I did start to write a simple script to do this in ID, but I then realised that I wanted the ordering to vary and the ID files would likely to change. Then I found the merge and bingo, that solved it..... Well it solved it on another CS4 installation that had never seen CS3, but not on my machine which had been upgraded from CS3.
    I tried looking in the registry for obvious entries that might point Acrobat to use ID CS3 rather than CS4, but couldn't spot anything. I wonder if there is something buried in there ?
    Thanks again for helping
    Regards.

  • How to merge two seperate free space into single partition/volume???

    Hey guys :)
    Please help me on merging two unallocated free spaces in my internal harddisk. I already tried searching for options in diskmanagement but nothing found to do that. The harddisk has two free spaces(1gb and 50.78gb) now, I want to merge them into single one
    and finally as a single parition/volume. Is there any other method or should use any other third party tool?
    I really wanted to attach a screenshot but sadly microsoft couldn't allow me.

    JAJ
    You need a third party tool like Easeus Partition Manager
    Wanikiya and Dyami--Team Zigzag
    Sure I'll try that. Thank you very much :)
    But it is really sad to say that it is real drawback of windows as it doesn't have its own choice in diskmanagement utility.

  • Merge form responses into single pdf

    I have 30 form responses and would like to combine them into a single pdf.  When I use the Merge Files Into Single PDF feature, the forms are combined into a single pdf, but the first form is duplicated 30 times.  In other words, the form fields on the other 29 forms are replaced with the data from the first form.  Can multiple form responses be combined into a singe pdf and the data be retained for each form?

    It is a bit late but I recently came across the same issue with combining mutliple PDF forms for which form fields have identical names. For example 100 people fill out the same PDF form and you need to combine them into one.
    I beleive you need to have Acrobat Pro
    1. File > Export > Export Multiple (This brings a dialog up where you can drag and drop a group of files.)
    2. Click OK
    3. Select EPS (Encapsulated PostScript)
    4. Click OK (Now you have .eps files of each PDF)
    5. Advanced > Print Production > Acrobat Distiller
    6. Select Standard
    7. Drag all the EPS files into Distiller
    PS - If anyone has a better solution please let me know!
    -Justin

  • Merge Files In Single PDF

    I have Acrobat 9 Pro (Windows XP) and am new at using the progam.
    I had merged a few jpegs into a single PDF file but the originals did not remain in its original location in my computer.
    Would someone be able to tell me if this is normal for this program?
    Is there a revert feature to get the originals back?
    Any help is appreciated. Thanks.
    jean

    I added files to the "Merge files into single PDF" menu and then clicked "Combine files". Went back to check in computer file and noticed the originals were not there. Would "combine files" mean deleting them? as I did not click any other button.
    I was able to retrieve my jpegs from the single PDF file by exporting them back to its destination, as Bill said, so I have my originals back.
    Thanks for your help.
    jean

  • Similar channel into single channel

    Dear All,
    Is there any way to merge the multiple similar channel to single channel without flattening layers.
    If pantone reflex blue 3 times is there means i need to merge it into single reflex blue channel.
    Pls help..
    Thank you,
    Joe

    Yes spot channel only and in Same document itself.
    And the above script need to run in Extend tool script?. Coz by this script there is no changes happening.
    By using Apply image can merge only two channels at a time. And after merged into a single channel source channel also remains.
    For ex,  Pantone Reflex Blue 1
          Pantone Reflex Blue 2
    Now i need to merge into 1. so after Merging by using Apply image
    Pantone Reflex Blue 1 2
    Pantone Reflex Blue 2 (But this is to be automatically deleted after merging, which is not possible by using Apply image)
    By using the script this needs to be recover
    1) In channel options
    Color indicates - Spot Color
    Color - Reflex Blue
    Solidity - 0%
    In same way i have taken the separation in different area of my image with same spot color.
    2) If process color are taken as spot channel that also need to merge with process channel (CMYK)
    Color indicates - Spot color
    Color - C100%
    Solidity - 0%
    If this is option selected in this channel to be merge with Cyan process color channel.
    By using Apply image option i used to give Multiply only and Opacity to 100%. Same need to apply this script. Pls help..
    Thank you,
    Joe

  • Acrobat Pro 9: "Merge files into a single pdf" creates blank pages

    I have a similar problem as a previous post (which hasn't been answered).
    I am able to pdf individual Word documents fine, but when I try to Combine > Merge files into a single pdf, the resulting pdf pages are all blank. I don't receive any error messages or have problems saving the file.
    I am using Adobe Acrobat Pro 9 (9.5.1) on Windows 7.
    The merging of pdf's hasn't worked at all since I installed the program.
    Any help would be much appreciated.

    Hi Bill
    Thanks so very much - you have solved the problem.
    I tried Document > Insert Pages and that worked.
    I then ran the "Repair" feature on Adobe which installed a few updates and I am now also able to merge pdf's by using the "Combine" feature and all the pages show the text/info.
    Thanks again for your help, it is very much appreciated.
    Thank you also to Apoorv for your assistance.

  • Merge files in Portfolio into single PDF, preserving order

    Hello, I am using Acrobat X.
    I have ordered a large number of files in a PDF portfolio into a desired sequence.
    Now, to make it easy to print the collection, I would like to merge them into a single PDF. When I use Create>Combine Files into a Single PDF, my sort order is ignored and the files are combined in an alphatebical sort by file name. Now I could repeat the entire process of manual sorting that I undertook in forming the Portfolio in the Combine Files list, but that will be take up a lot of time and doesn't seem like the smart way to do it.
    Can someone suggest how to do this merge the way I want it, automatically?

    I've developed a tool that might help you solve this problem.
    Merge PDF Files in True Numeric Order: http://try67.blogspot.com/2011/05/merge-pdf-files-in-true-numeric-order.html

  • Open the "Merge Files into a Single PDF" utility via script or exe?

    Greetings:
    I'm trying to find a method to open the Merge Files into a Single PDF utilty without opening Acrobat first.  Does anyone have some example code on how to open this dialog window?  It doesn't matter what language it is in, I can do the legwork to translate it to something I can understand.
    Ideally, I'd like to open the combine/merge window through an EXE or VBScript and pass it a handful of filenames that would appear in the programs list to process.
    Any help would be *GREATLY* appreciated.
    Thanks,

    Hi,
    As far as I am aware it is not possible to pass a list of files to this dialog using any API in Acrobat.
    You could however create your own VB .net application that has a mutli file select dialog box and the use the JSObject to merge all those files and open the resultant file in Acrobat.
    There are samples in the Acrobat SDK that show how to use the JSObject and the JavaScript function you could use to perform the merge are in the SDK documentation, I would start with investigating "insertPages".
    Please note that using the Acrobat SDK requires the Acrobat program to be installed and it will also need to be running in order to convert the files.
    Hope this helps
    Malcolm

  • I have 2 iTunes accounts.. i would like to merge them into 1- any help??

    i have 2 itunes accounts and would like to merge them into 1 account... any help??

    If you mean iTunes Store accounts, you can't.
    If you mean iTunes libraries, import the files and playlists from one library to the other.
    (92667)

Maybe you are looking for

  • Problem with a Frame window

    Hi, I try from 2 weeks to integrate a player in a Frame in a mobile environment (PocketPC). All works file in native code. My C++ example application works fine and the player is corectly inserted in a win32 window.. I managed to get the HWND of the

  • Getting error in Macbook Air

    please let me know how can i create the folders in macbook to segregate the photos need to know also i have the apple pan drive but can not transfer data from iPhone to pan drive and also form mac book to pan drive it is very complicated for me to us

  • Where can I find user system files in Mountain Lion?

    I'm testing Mountain Lion on a separate drive at the moment. Can anyone explain to me how to find the system files in User> (name)> Library> Application Support? Or any of the system files at all? What happened to them? I've always used this folder (

  • Good third party documentation?

    Robo 7's online Help is hopeless. Anyone found some complete, deep, well-written user documentation, hopefully a guide that contains info about straightening out a fouled up upgrade?? Also, if anyone knows how I can delete one instance of my inadvert

  • Why is StyleClass attribute not working for me

    I have an af:input field I am trying to use a custom style with, but using the StyleClass attribute for the component doesn't do what I'm expecting it to, here is my af:input tag I've created: <af:inputText label="Password:" id="it12" secret="true" s