I NEED TO KNOW ABOUT DRIVING TABLE...PLEASE

Well, My name is Adan. I am from Panama.. my english is not
good. But I'll try. I need to know about driving tables and how
have to choose a driving table and how optimizer proccess an sql
statment.
Example:
Employees have (1,000,000 rows),
dept have (100 rows)
Category have (100 rows)...
I need retrieved all employees with category and dept name for
those employee with salary > 100000
Well, What is the driving table and where i have to put this one
in the from clause ? What about order in the where predicate...
First ?
Select E.name, C.category, D.Departement
from Employees e, dept d, category c
where
and d.cat = c.cat
and e.deptno = d.deptno
and e.salary > 100000
Last ?
Select E.name,C.category, D.Departement
from dept d, category c ,Employees e
where
and d.cat = c.cat
and e.deptno = d.deptno
and e.salary > 100000
I apreciate your help....Thanks and sorry for my english....
Bye..

Adam,
If you set your optimizer = choose and analyze the tables and
indexes to generate statistics, then your system can use the
Cost Based Optimizer (CBO) and, like David said, it will
automatically choose the best access path, and the order of
things will not matter.
If your optimizer is not set to choose or if there are no
statistics, then it will use the Rule Based Optimizer (RBO), in
which case, the only thing that matters is the order of the
tables in the from clause. When using RBO, the driving table
should be at the end of the from clause, in the right-most
position. The driving table is the one such that, after the
restrictions have been applied, returns the smallest number of
rows. You would have to compare the number of rows in the
employees table where salary > 100000 to the number of rows in
the dept table (100) and the number of rows in the category
table (100).
In RBO, if there are more than 100 rows in the employees table
where salary > 100000, then your from clause would be:
FROM employees e, dept d, category c
In RBO, if there are less than 100 rows in the employees table
where salary > 100000, then your from clause would be:
FROM category c, dept d, employees e
This is all that applies to the example you have given, however
there are other things that can apply in other situations. For
example, if there is an outer join to a table, the table that
has the (+) cannot be used as the driving table.
Barbara

Similar Messages

  • What does a BI Developer need to know about SAP tables and why?

    Hi,
    i.
    As a BI Developer, to what extent do you need to know about SAP tables?
    e.g. if you work mainly in the functional areas LO and FI
    ii.
    For example, I know that in Finance, GL relates to the tables BSEG and BKPF.
    And if it is important to know about them, then which other tables need to be known and for what reasons?
    e.g. do I need to know all these tables: http://www.erpgenie.com/sap/abap/tables_fi.htm
    iii.
    I thought as a BI Developer, knowing that a particular datasource, e.g. 0FI_GL_4 contains line items is enough and you replicate it to BW and work with it. Why is there the need to know the tables from which this datasource gets is data?
    iv. What is the main difference between the FI datasources and the LO datasource?
    Thanks.

    Hi,
    i.  As a BI Developer, to what extent do you need to know about SAP tables?
    e.g. if you work mainly in the functional areas LO and FI
    Not required, but today business demands so you required this Knowelgde.
    ii.
    For example, I know that in Finance, GL relates to the tables BSEG and BKPF.
    And if it is important to know about them, then which other tables need to be known and for what reasons?
    e.g. do I need to know all these tables: http://www.erpgenie.com/sap/abap/tables_fi.htm
    We can't say yes or No, so based on your requirement you need to sit with Functional COnsultanst and the understand the Business Requirements and develop the OBjetcs.
    iii.
    I thought as a BI Developer, knowing that a particular datasource, e.g. 0FI_GL_4 contains line items is enough and you replicate it to BW and work with it. Why is there the need to know the tables from which this datasource gets is data?
    If you want to know the data flow and reconsilization then you need to know it else not required
    iv. What is the main difference between the FI datasources and the LO datasource?
    Yes, one main difference is There is no setup table concept for FI DataSource*
    Note: If you want to become a good BW consulatnt you must know about Tables for normal BW consultant it is not required.
    Thanks
    Reddy

  • What all we need to know about prescribed tables

    q]      When functional guys tell me to use certain tables say <tab1>, <tab2> …etc.,Then is it so we need to study these tables-  about their DOMAIN  ,(ii) DATA ELEMENT,(iii) Function of each field-- to code our program; are vthey available from easy source?

    Hi
    Its very helpful to know the fields of a table and their descriptions. Also try to explore the relationship between tables. on net you will get some description of commonly used tables.
    Aditya

  • Everything you need to know about Foxtel Go

    Foxtel on T-Box customers can self register Foxtel Go on 2 devices per Foxtel on T-Box subscription. You are able to view content on 1 of the 2 registered devices. The T-Box device will automatically be registered on your behalf and cannot be deregistered. You can change the device they have registered once per calendar month.
    To change a registered device you must log into the Foxtel Go app. As a Foxtel from Telstra customer please use your Foxtel My account details. As a Foxtel on T-Box customer please log in with your primary (i.e. the first username created and linked to your account) BigPond username and password.
    Once in the app go to the settings icon and choose 'manage my devices'. Within this section of the app you will be able to select de-register for the device you wish to change. To register, download the Foxtel Go app and log in. You will be prompted to register the device.
    Remember you can only change one device once per calendar month. If you are still able to make a change, you will be advised of the number of device registrations left this month.
    If you recently registered your T-Box, you should have access to Foxtel Go within 1 hour. If you are experiencing errors please try closing the Foxtel Go App and logging in again. If you are still unable to access any content please contact us via Telstra 24x7 or Telstra Technical Support on 13 22 00
    If you swap your Foxtel on T-Box service to a new device, your Foxtel Go service is not affected as it is associated to your BigPond username and password, and not the T-Box device.
    When trying to make a second device change within a month the de-register' button will be greyed out, preventing the change.
    Current channel rights only allow Foxtel Go to be registered on 3 devices per Foxtel Account. For Foxtel on T-Box customers, the T-Box counts as your 3rd device.
    The parental control function is specific to Foxtel Go and managed in the app via the settings icon. To access parental control:
    Go to the settings' icon in the app (top right)
    Access parental controls'
    Choose which classifications you'd like to restrict
    All R-rated content is automatically blocked, but you can personalise your restrictions for other ratings. To do this go to Settings in the Foxtel Go app, turn on Parental Controls and restrict the classifications you would like to block. If this is the first time you do this you'll be prompted to set a 4 digit PIN specifically for Foxtel Go. You can use this PIN to change your parental controls in the future. This PIN is only applicable to the Foxtel Go app. For Foxtel from Telstra customers, the PIN is not the same as you use on your IQ or Set Top Box, and you will be required to setup a new PIN to restrict content on Foxtel Go. For Foxtel on T-Box customers, the PIN is not the same as you use on your T-Box, and you will be required to setup a new PIN to restrict content on Foxtel Go.
    Foxtel Go content is unmetered with Telstra BigPond Home Broadband services. With other internet service providers this will be offset against your data plan.
    If you use Foxtel Go on your device with any 3G/4G telecommunications service provider, including Telstra, usage isn't unmetered and you will incur data charges when using Foxtel Go. The below list provides an indicationof the data you will use per device on the various app settings, based on watching an hour of TV. To view your settings go to the 'settings' icon in the Foxtel Go App, turn on 'video settings' and choose your preferred quality:
    3G Phone/Tablet Best: 320 MB per hour / Low: 170 MB per hour
    Wi-Fi Phone Best: 420 MB per hour / Low: 320 MB per hour
    Wi-Fi Tablet Best: 720 MB per hour / Low: 320 MB per hour
    Wi-Fi PC/Mac Best: 1310 MB per hour / Low: 470 MB per hour
    The size of each episode or Movie on Catch up TV can be found on the Synopsis tab.
    You can use Foxtel Go at a Wi-Fi location or a personal hotspot when you are in Australia provided you have an internet connection. Some locations offer Wi-Fi hotspots where you can log onto the internet for free. e.g. McDonalds, Starbucks, etc. Any data charges incurred are charged to the business and not to you. When connected to Wi-Fi, you'll see a Wi-Fi symbol on your device.
    Foxtel from Telstra customers with a Foxtel iQ or iQHD set top box can Remote Record and send a channel change to their set top box. Unfortunately this functionality is not available to Foxtel on T-Box customers.
    You can pause and rewind the last 30 minutes of Live TV, even if you've just changed to that channel. Due to device restrictions users of Samsung Android devices are unable to use this feature.
    Foxtel Go is a streaming video service. Streaming means that images and sound are delivered live to your device to view when you press Play, rather than being downloaded to your device to view at a later time.
    Games you'd normally see on Foxtel from Telstra or Foxtel on T-Box on FOX SPORTS 3 are broadcast on Foxtel Go on the Footy Play Plus channel
    There are no Catch Up of AFL games or magazine shows on Foxtel Go due to content restrictions.
    The key symbol indicates that a channel isn't part of your package. You need to upgrade your Foxtel from Telstra or Foxtel on T-Box package to watch it. Your package can not be updated through the Foxtel Go app. For Foxtel on T-Box customers you can update your packages in the T-Box App, at www.telstra.com/tboxsetup, via 13 2200 or in store. For Foxtel from Telstra customers you can update your packages through the store or via 13 1999. The lock symbol indicates that, as part of your parental control setting, you've locked this classification of content, and can't watch it. If you want to change the settings then the primary (i.e. the first username created and linked to your account) account holder can change these by:
    Go to the settings' icon in the app (top right)
    Access parental controls'
    Choose which classifications you'd like to restrict
    No other username or password can change the parental control settings.
    We may be required to block out specific programming from time to time, e.g. if a channel doesn't have the legal right to broadcast the programme over the internet. However, all live channels are the same as channels you watch through Foxtel from Telstra or Foxtel on T-Box.
    The vast majority of the Foxtel on T-Box content is available via Foxtel Go. There are some minor exceptions. MTV Music and MTV Dance channels are not available. FOOTY PLAY and FOOTY PLAY+ (overflow) channels are not available on PC and Mac only.
    Access to Foxtel Go is included in your Foxtel on T-Box and Foxtel from Telstra subscription. However, you will incur data charges when accessing the service on a 3G/4G network.

    Re: Everything you need to know about Foxtel Go
    Iam book in to have foxtel install on 2nd of March was offered Thursday the 28 my appointment has been cancelled so can be home Thursday I put a complaint in as was told it was 1hour for change over from T Box but no one has got back to me

  • Urgent. Need to know about user exits.

    Hello Everyone,
    I am new to this forum. I need to know about user exits.
    My next project requires me to implement user exits, screen exits, etc.
    I am a rookie to this topic.
    Can anyone help me as to how to start with his topic.
    Any sort of help is appreciated.
    Cheers,
    Neelam.

    Hi Neelam,
    Welcome to sdn.
    This is a very frequently asked topic.
    Please use teh search forum option for this type of queries.
    http://help.sap.com/saphelp_47x200/helpdata/en/c8/19763443b111d1896f0000e8322d00/frameset.htm
    Regards,
    Ravi

  • I need to know about a value on my credit card .. I do not own

    I need to know about a value on my credit card .. I do not own

    Sorry, but I do not understand your question. Would you please explain in more detail? If you're not comfortable in English, try posting in your native language.
    Regards.

  • Need To know about iOS Data Storage Guidelines?is it a Data base?

    hey..Friends i need to know about iOS Data Storage Guidelines?is it a Data base?

    https://developer.apple.com/icloud/documentation/data-storage/
    Please refrain from mutliptle posts of the same question.

  • FAQ: I already have a Revel account. What do I need to do? What do I need to know about this?

    Q: I already have a Revel account. What do I need to do? What do I need to know about this?
    A: If your Revel account uses the same Adobe ID as your Photoshop.com account, your JPEGs will be moved there. Otherwise, a new Revel account will be set up for you using the same Adobe ID you use with your Photoshop.com account.
    Revel accounts can be merged manually. Use the Adobe Media Downloader to download all of the JPEG photos from your Photoshop.com library and then upload those photos to your existing Revel account.
    Click here to archive your Photoshop.com library so you do not lose any files.
    You will be asked to download an Adobe Air application called Media Downloader

    Your .mac Mail account will continue to operate normally as long as you access the account from the Mac's Mail program. Read this:
    What if I just want to keep using my email on all my devices?
    As of May 1, you can choose to keep using your mail after MobileMe ends, even on devices that don’t meet the iCloud system requirements. Just go to me.com/move and select the option to keep using your email after MobileMe ends. Once you have completed this short process, your mail will continue to work on devices that don’t meet the iCloud requirements after MobileMe ends on June 30th, 2012.
    iCloud is a collection of features that allows you to sync Safari bookmarks, Calendar items, Contacts, and iWork documents (Pages, Numbers) among multiple devices, among other things. Your photos in iPhoto will not be affected.
    iCloud is most valuable for people with iOS devices and Macs and requires OS X 10.7 "Lion".
    Here is some more information: http://www.apple.com/mobileme/transition.html

  • HT1620 So what do I need to know about  using my iPad on public networks, say restaurants,etc. Can I use passwords of any kind, or will I be compromised?

    So what do I need to know about using my iPad mini on public networks, say in restaurants. Will I be compromised by using  passwords? What protects my iPad?

    To date, the iPad/iPad mini/iPhone/iPod Touch produces have remained secure.
    In a public place, you do not control the network, so be careful of what activities you perform, such as accessing your bank, or other sensitive places.
    Just surfing and reading your email is generally speaking not a problem.  Hopefully, your email connections are over secure SSL connections.

  • What do I need to know about transfering a 4th gen touch to a new 5th gen touch?

    My daughter will be getting a new 5th generation touch today. She has a 4th generation touch now. What do I need to know about transfering informaiton from one device to the other?

    See:
    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device
    Unless you restore from an encrypted backup, y will have to reenter all password on the new device
    iTunes and encrypted backups
    You can protect your backup with a passcode using the Encrypt Backup option in the Summary tab. Encrypting your backup will back up your Keychain. This way, your email account passwords, Wi-Fi passwords, and passwords that you enter into websites and some apps will be remembered when you transfer to a new device. Learn how to create and restore from a backup.
    When your backup is encrypted, you'll need to enter the password when enabling or disabling encryption or when restoring from the backup.

  • What do I need to know about fonts?

    Can anyone explain what I need to know about using fonts on a MacBook Pro running Leopard, or point me to a good reference or tutorial? I've never paid much attention to fonts in the past, as I only use a few in print (Arial, Verdana, Times New Roman, etc.), and I never did much with fonts in my graphics work. But I want to take a closer look at fonts and start experimenting with them. Looks like a surprisingly big topic.
    On my PC, I was limited to how many fonts I could display by memory. As I understand it, there's no such limit on a Mac running Leopard.
    I encountered references to fonts when I installed Adobe Creative Suite and Microsoft Office for Mac, so I need to figure out how to manage fonts, then go back and check the installation disks again.
    Right now I have three font folders in username > Library: FontCollections, Fonts (empty) and Fonts Disabled (empty).
    I also need to learn about the different kinds of fonts (e.g. True Type, etc.) and how/where people obtain them, though that's probably beyond the scope of this thread.
    But before I do any more research via Google, I'd like to narrow the field a bit. I was hoping someone could give me a basic overview or point me to a good reference. What software do you use to manage fonts on a Mac, and do you have any basic tips to offer?
    Thanks.

    Also, see:
    Font Management in OS X
    http://images.apple.com/pro/pdf/L311277AFontTTv4.pdf
    http://www.creativetechs.com/tips/SVC-fonts/Fonts-2007-SVC.pdf
    http://dl.extensis.com/downloads/SC/EN/P/FontsBest_Practices_inOSX.pdf
    http://www.macworld.com/article/44942/2005/05/julyworkingmac.html

  • I need to know in which table the long text is stored

    Using the transaction code 'AC03' , I go to the ' Create Service Master Page '.  Navigating through the page , I could see a ' long text ' button . Once it is being clicked , the white space for text entry comes .
    My query is this -> <b>I need to know in which table the long text is stored and the name of the field ??</b>
    If one goes to the table 'ASMDT' , one can find a field  'KZLTX' , which is a long text indicator, but not a long text storage field ......  plz help

    Hi
    Use the function module READ_TEXT for fetching the long text..
    I came across similar situation in my project where i need to fetch the long text for Notification no.I have used the following code for fetching the Notificatin long text,you can just compare this logic and change accordingly.
          CALL FUNCTION 'READ_TEXT'
               EXPORTING
                    CLIENT   = SY-MANDT
                    ID       = 'LTXT'
                    LANGUAGE = WA_STRUCT12-KZMLA
                    NAME     = QMNUM
                    OBJECT   = 'QMEL'
               TABLES
                    LINES    = INT_TAB13.
    Specify LANGUAGE if you wanna fetch the long text regardless of the log on lang.The resulting long text will be stored in the itab INT_TAB13 which can be defined with reference to the structure TLINE.
    Hope this helps.
    Regards,
    Hakim

  • I have a late 2009 iMac. I installed OSX 10.8.4 and want to go back to Snow Leopard. I have a 1.5TB external HD. Are there any issues I need to know about or tips I need to know before doing this? Thanks.

    I have a late 2009 iMac. I installed OSX 10.8.4 and want to go back to Snow Leopard. I have a 3TB external HD. Are there any issues I need to know about or tips I need to know before doing this? Thanks.

    Downgrade Lion/Mountain Lion to Snow Leopard
      1. Boot from your Snow Leopard Installer Disc. After the installer
          loads select your language and click on the Continue
          button. When the menu bar appears select Disk Utility from the
          Utilities menu.
      2. After DU loads select your hard drive (this is the entry with the
          mfgr.'s ID and size) from the left side list. Note the SMART status
          of the drive in DU's status area.  If it does not say "Verified" then
          the drive is failing or has failed and will need replacing.  SMART
          info will not be reported  on external drives. Otherwise, click on
          the Partition tab in the DU main window.
      3. Under the Volume Scheme heading set the number of partitions
          from the drop down menu to one. Set the format type to Mac OS
          Extended (Journaled.) Click on the Options button, set the
          partition scheme to GUID then click on the OK button. Click on
          the Partition button and wait until the process has completed.
      4. Quit DU and return to the installer. Install Snow Leopard.
    This will erase the whole drive so be sure to backup your files if you don't have a backup already. If you have performed a TM backup using Lion be aware that you cannot restore from that backup in Snow Leopard (see below.) I suggest you make a separate backup using Carbon Copy Cloner.
    If you have Snow Leopard Time Machine backups made while on Snow Leopard, then you may do a full system restore per #14 in Time Machine - Frequently Asked Questions.  If you have subsequent backups from Lion, you can restore newer items selectively, via the "Star Wars" display, per #15 there, but be careful; some Snow Leopard apps may not work with the Lion/Mountain Lion files.

  • I'm thinking of buying an ipad wifi for my mom who lives in Kenya. Any issues I need to know about? Will the ipad work ok?

    I'm thinking of buying an ipad (1) wifi for my mom who lives in Kenya. I understand the charger is universal and will work with an adapter. Any other issues I need to know about? Will the ipad work ok?
    She is 68 years old and has vision problems. My thought is that it would be eaiser for her to see than a ipod touch. She would use it for music, maybe reading, some games. I'm not sure she would be adept enough to download many apps, so we'd prbably load it up for her.
    Thanks for any input!

    She's going to need to update and at some point restore the iPad which requires a computer.
    For vision problems she can enable zoom. Tap Settings / General / Accessibility.

  • Everything you need to know about FCP X 10.1  .  .  .

    .  .  .  .  .  well almost everything.      http://fcpx.tv

    Re: Everything you need to know about Foxtel Go
    Iam book in to have foxtel install on 2nd of March was offered Thursday the 28 my appointment has been cancelled so can be home Thursday I put a complaint in as was told it was 1hour for change over from T Box but no one has got back to me

Maybe you are looking for

  • Status Sync between Portfolio Item and Initiative doesn't work!!

    Hi,    Does any body have a procedure to synchronize the status between Portfolio Item and Initiative. i have done all the configurations, but still sync Item -->initiative not happening but working fine with in Reverse direction Initiative --> item.

  • Why am I having a problem networking with Air port Extreme?

    My husband and I are networked using airport extreme. I recently (Dec) got my Macbook Pro and he took my Titanium G4 power book. Since the change, his computer never gets to a full signal level. Needless to say, this is very discouraging. What can I

  • QM for Film Mfg. Industry

    Dear All, I want to know about Quality Management in Film Mfg. Industry / Paper Industry. Please tell me, where i can get information for this. I have a query in QM for Film Mfg. Industry. The problem is: Film production is in ROLLs. Base unit of mea

  • ABAP Proxy outbound not showing in sxmb_moni

    Hi All, All my ABAP proxy scenarios are inbound, however I need to do a outbound ABAP Proxy scenario. So, I created a Assyn interface in Integration Builder and created a proxy on outbound message interface in SPROXY. (ZCO_ITF_FILE_***). R/3 --> SQL

  • Computer doesn't acknowledge Z1s via USB

    I have a Z1s, Kitkat 4.4.4, trying to connect to a Lenovo laptop running W8.1.  The problem happened after I tried using Helium to backup my stuff.  The PC Helium program tried to get me to change my USB connection setting from MTP to PTP, which I wa