How can i use index in select query.. facing problem with the select query.

Hi Friends,
I am facing a serious problem in one of the select query. It is taking a lot of time to fetch data in Production Scenario.
Here is the query:
  SELECT * APPENDING CORRESPONDING FIELDS OF TABLE tbl_summary
    FROM ztftelat LEFT JOIN ztfzberep
     ON  ztfzberep~gjahr = st_input-gjahr
     AND ztfzberep~poper = st_input-poper
     AND ztfzberepcntr  = ztftelatrprctr
    WHERE rldnr  = c_telstra_accounting
      AND rrcty  = c_actual
      AND rvers  = c_ver_001
      AND rbukrs = st_input-bukrs
      AND racct  = st_input-saknr
      AND ryear  = st_input-gjahr
      And rzzlstar in r_lstar                            
      AND rpmax  = c_max_period.
There are 5 indices present for Table ZTFTELAT.
Indices of ZTFTELAT:
  Name   Description                                               
  0        Primary key( RCLNT,RLDNR,RRCTY,RVERS,RYEAR,ROBJNR,SOBJNR,RTCUR,RUNIT,DRCRK,RPMAX)                                          
  005    Profit (RCLNT,RPRCTR)
  1        Ledger, company code, account (RLDNR,RBUKRS, RACCT)                                
  2        Ledger, company code, cost center (RLDNR, RBUKRS,RCNTR)                           
  3        Account, cost center (RACCT,RCNTR)                                        
  4        RCLNT/RLDNR/RRCTY/RVERS/RYEAR/RZZAUFNR                        
  Z01    Activity Type, Account (RZZLSTAR,RACCT)                                        
  Z02    RYEAR-RBUKRS- RZZZBER-RLDNR       
Can anyone help me out why it is taking so much time and how we can reduce it ? and also tell me if I want to use index number 1 then how can I use?
Thanks in advance.

Hi Shiva,
I am using two more select queries with the same manner ....
here are the other two select query :
***************1************************
SELECT * APPENDING CORRESPONDING FIELDS OF TABLE tbl_summary
    FROM ztftelpt LEFT JOIN ztfzberep
     ON  ztfzberep~gjahr = st_input-gjahr
     AND ztfzberep~poper = st_input-poper
     AND ztfzberepcntr  = ztftelptrprctr
    WHERE rldnr  = c_telstra_projects
      AND rrcty  = c_actual
      AND rvers  = c_ver_001
      AND rbukrs = st_input-bukrs
      AND racct  = st_input-saknr
      AND ryear  = st_input-gjahr
      and rzzlstar in r_lstar             
      AND rpmax  = c_max_period.
and the second one is
*************************2************************
  SELECT * APPENDING CORRESPONDING FIELDS OF TABLE tbl_summary
    FROM ztftelnt LEFT JOIN ztfzberep
     ON  ztfzberep~gjahr = st_input-gjahr
     AND ztfzberep~poper = st_input-poper
     AND ztfzberepcntr  = ztftelntrprctr
    WHERE rldnr  = c_telstra_networks
      AND rrcty  = c_actual
      AND rvers  = c_ver_001
      AND rbukrs = st_input-bukrs
      AND racct  = st_input-saknr
      AND ryear  = st_input-gjahr
      and rzzlstar in r_lstar                              
      AND rpmax  = c_max_period.
for both the above table program is taking very less time .... although both the table used in above queries have similar amount of data. And i can not remove the APPENDING CORRESPONDING. because i have to append the data after fetching from the tables.  if i will not use it will delete all the data fetched earlier.
Thanks on advanced......
Sourabh

Similar Messages

  • How can i open itunes if there is a problem with the itunes library file?

    Hi to everybody,
    it's my first time in itunes and after installing it I moved the folder in music. Then i was questioned about something on sharing or account, I can't remember, and i choised not to share anymore. After that every time i try to open my itunes there's an error message appearing that says he has not the possibility of open or write the library file. i've already tried to reinstall the program but the problem isn't fixed. my platforme is windows7. thanx for any help

    Contact iTunes customer support.

  • How can I use index in xsl mapping

    Hi All,
    How can I use index in XSL mapping.

    Hi Shiva,
    I am using two more select queries with the same manner ....
    here are the other two select query :
    ***************1************************
    SELECT * APPENDING CORRESPONDING FIELDS OF TABLE tbl_summary
        FROM ztftelpt LEFT JOIN ztfzberep
         ON  ztfzberep~gjahr = st_input-gjahr
         AND ztfzberep~poper = st_input-poper
         AND ztfzberepcntr  = ztftelptrprctr
        WHERE rldnr  = c_telstra_projects
          AND rrcty  = c_actual
          AND rvers  = c_ver_001
          AND rbukrs = st_input-bukrs
          AND racct  = st_input-saknr
          AND ryear  = st_input-gjahr
          and rzzlstar in r_lstar             
          AND rpmax  = c_max_period.
    and the second one is
    *************************2************************
      SELECT * APPENDING CORRESPONDING FIELDS OF TABLE tbl_summary
        FROM ztftelnt LEFT JOIN ztfzberep
         ON  ztfzberep~gjahr = st_input-gjahr
         AND ztfzberep~poper = st_input-poper
         AND ztfzberepcntr  = ztftelntrprctr
        WHERE rldnr  = c_telstra_networks
          AND rrcty  = c_actual
          AND rvers  = c_ver_001
          AND rbukrs = st_input-bukrs
          AND racct  = st_input-saknr
          AND ryear  = st_input-gjahr
          and rzzlstar in r_lstar                              
          AND rpmax  = c_max_period.
    for both the above table program is taking very less time .... although both the table used in above queries have similar amount of data. And i can not remove the APPENDING CORRESPONDING. because i have to append the data after fetching from the tables.  if i will not use it will delete all the data fetched earlier.
    Thanks on advanced......
    Sourabh

  • Question when I log into Firefox, the screen scrolls down and I have to use the side-bar to go back up to type my query into the 'search' window. How can I stop that and get Firefox to start with the 'search' window accessible? With thanks, Peter

    Question
    when I log into Firefox, the screen scrolls down and I have to use the side-bar to go back up to type my query into the 'search' window. How can I stop that and get Firefox to start with the 'search' window accessible? With thanks, Peter

    See this. <br />
    https://support.mozilla.com/en-US/kb/Firefox+hangs#Hang_at_exit

  • When I log into Firefox, the screen scrolls down and I have to use the side-bar to go back up to type my query into the 'search' window. How can I stop that and get Firefox to start with the 'search' window accessible? With thanks, Peter

    Question
    When I log into Firefox, the screen scrolls down and I have to use the side-bar to go back up to type my query into the 'search' window. How can I stop that and get Firefox to start with the 'search' window accessible? With thanks, Peter

    See this. <br />
    https://support.mozilla.com/en-US/kb/Firefox+hangs#Hang_at_exit

  • HT5437 How can I use apple TV to connect my computer to the tv screen as an external monitor?

    How can I use apple TV to connect my computer to the tv screen as an external monitor?

    Morning jotref,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at this article:
    About AirPlay Mirroring in OS X Mountain Lion
    http://support.apple.com/kb/ht5404
    Best of luck,
    Mario

  • How can I use Aperture 3 on my new iMac with Maverick?

    How can I use Aperture 3 on my new iMac with Maverick?

    Do you own a copy of Aperture, perhaps bought for another Mac?
    If you have not bought Aperture, you need to buy it from the AppStore.
    But if you own Aperture and have it bought from the AppStore on another Mac, sign into theAppStore on your new iMac with the same AppleID you used to buy Aperure on your other Mac.  Then look at the "Purchased" tab of he AppStore. It show Aperture, with the "Install" button to the right. Simply press the "Install" button and download it to your new iMac.  Or if you have bought Aperture on a CD/DVD, run the installer from the CD/DVD on your new mac and immediately run software update to upgrade the Aperture 3. version to version that will run with Mavericks.
    Léonie

  • HT1660 how can I use one single library for all users on the same laptop?

    how can I use one single library for all users on the same laptop?

    You are most of the way there. Each user having access to hard drive is the key. If users are limited in file privileges this is harder.
    Any files you add to your library and any files she adds to her library are available to the other. Just not automatically. Each user must add the files to their own library using the add file or add folder option from menu bar.
    What I have done is set library location to a location outside of My Documents\My Music. On my network storage I have a folder names s:\itunes. Both accounts iTunes are set to use this location for the library.

  • How can I use Drupal as a third party CMS with ATG E-Commerce Application?

    Hi Friends,
    We are planning to use a third party Freeware Content Management System (CMS) for web site content in ATG E-Commerce Application, instead of ATG content Administration or merchandising.
    Can anybody please let me know how can I use a third party CMS(Eg: Drupal) with ATG E-Commerce Application?
    Regards,
    Krishna.

    I did create a rule to determine if anyone coming through time eval is a new hire based on vacation elig. date in IT0041.  It compares Today to the vacation elig. date and if they match, set a time type indicator to 1.  I also added another decision to determine if they were a part time employee and pro-rate their quota entitlement based on what's in their IT0007 weekly working hours.  Instead of setting the time type indicator to 1, I recalculated based on a percentage of 40 hrs/wk and then updated the time type to that percentage.  In my quota generation rule I use that time type as a multiplication factor to recalculate their new pro-rated amount rounded up to the nearest whole number.

  • How can i use isight camera to broadcast to web with Mac OS 10.4?

    I am using an iBook G4 running OS 10.4 as a printer server.  I have to do this to be able to print on my HP DeskJet 882c printer from computers running OS 10.6 and above (although I have not been able to get it to work with 10.8).
    I can connect an iSight camera to the iBook via FireWire.  Can I set that up to broadcast a video feed to a web site so I can visually monitor the area near the laptop and printer?

    jrmnewtonma wrote: How can i use isight camera to broadcast to web with Mac OS 10.4?
    You could use compatible older versions of QuickTime professional extensions for your Mac OS X version.
    This professional quality software is very powerful, and it will certainly stream any video you need.  However, it is not simple to use, so be prepared to do some research and study to get it configured and working.
    To use your iBook with its OS X 10.4, you will need QuickTime Broadcaster 1.5.3 
    and Darwin Streaming Server (v5.5.5) (if you need streaming server functions.) 
    Although I have never used it, QuickTime Streaming Server 4.1.1 might be a useable substitute for Darwin.
    Message was edited by: EZ Jim
    Mac OSX 10.8.3

  • How can I use Guest network when my internal server provides the DNS?

    How can I use guest network when my internal server provides the DNS? The help article TS4505 tells me to enter an external DNS server, but I believe I can not configure my network that way...

    Apple assumes that you will be connecting the Time Capsule to a simple modem....and.....that the Time Capsule is configured as a router to provide DHCP and NAT services for the network.
    The Guest Network cannot be enabled correctly unless the Time Capsule is in charge of DHCP and NAT services on the network.
    Another way of saying the same thing is that the Guest Network will not operate correctly if the  Time Capsule is configured in Bridge Mode or DHCP Only.

  • How can I use my Macbook as a dual monitor with my iMac?

    How can I use my Macbook as a dual monitor with my iMac?

    Then you want to use what's called Target Display Mode.
    iMac (Mid 2011)- Target Display Mode does not work with Mini DisplayPort cable
    Target Display Mode And Thunderbolt

  • HOW CAN I USE FACETIME IN MY MAC TO SPEAK WITH MEXICO??

    HOW CAN I USE FACETIME IN MY MAC TO SPEAK WITH MEXICO??

    where are you located? in some middle eastern countries facetime is blocked by the government.

  • My iphone 4s is 2nd ...then i format..the phone want old user id...how can i used that iphone back because i dont know the id?

    My iphone 4s is 2nd ...then i format..the phone want old user id...how can i used that iphone back because i dont know the id?

    There is no other solution - as you have already been told, if you don't have that user id and you cannot contact the previous owner of that id for the phone, then there is absolutely nothing that you can do.  You have a useless brick that you can't use.
    Nothing else to do.

  • How can i get a copy of my ipone messages with the number, date and time stamp?

    How can I get a copy of my iphone messages with the number it was sent from and the date and time stamp?  Needed for court purposes.

    Try the computer apps PhoneView (Mac) or TouchCopy (Mac & PC):
    http://www.ecamm.com/mac/phoneview/
    http://www.wideanglesoftware.com/touchcopy/index.php
    You should probably consult your attorney to see if either of these will be acceptable.

Maybe you are looking for

  • How to create multiple TYPES of objects from one menu?

    Q: How can I create a single class to create objects of multiple 'object classes' in a way that is not a huge switch statement? Explaination: Let's say that I have an application that I am building, that manages five hundred object types. A properly-

  • Is there a way to view a Genre Column in the iTunes Store?

         I have some file (That I did not download from iTunes). And their names were all messed up. But I was able to fix them by using the iTunes store and finding names, artist's, and etc. But when it came to Genres I could not find the Genre Column i

  • Change Legend Label

    There is a way to change the label value of the elements for chart legend? Thank you

  • Why Does Adobe Reader download button  launch windows Media Player?

    I want to download an owners manual for my dishwasher. When I go to the mfg. site and locate the PDF file and click it to 'run' or 'save' (to desktop), Windows Media Player  launches. What's going on?? Please respond soon and thanks. Steve   Win 7, I

  • Problem while applying configuration to SCE 8000 using SCE-API

    We are facing an issue while applying service  configuration to SCE 8000 device using SCE API supplied by CISCO. We have sample .pqb file  which we are using to upload to SCE 8000. We are using 3.5.5 version of  firmware on SCE. Attached is exception