If u expert Please tell me

i have one doubt
i have 4 table this table have record
a is 11,b is 3,c is 1 and d_city is 0
and field is
a(city_code,name ,dept)
b(dept,dname)
c(dept,salary)
d_city(city_code,city_name)
all table dont have index,con. ect just simple create..
my query is
Select a.city_code,a.name,b.dept,c.salary
From a,b,c,d_city
Where a.dept=b.dept
And a.dept=c.dept
And a.dept=d_city.city_code
in explain plan some time it scant d_city first,some time it scan b first
i want to know how oracle desided which table scan first

The CBO (Cost Based Optimiser) takes a number of things into consideration when deciding how "expensive" a query is in order to arrive at some cost figure.
One of the prime considerations is the amount of I/O to do. I/O is very expensive. Why? Simply because it is such a slow operation - there are inherant latency in I/O. Disk heads have to move and read data, data has be shipped from disk into memory, etc.
So the CBO will attempt to reduce I/O by selecting an execution path where I/O can be minimised. E.g. using an index instead of scanning the entire table.
Why would Oracle choose one table over another table when doing a join? Ideally it would want to use the "smaller" table as that means less I/O.
However, it's decision is based at a certain point in time on the available information at the time. Table sizes can change. Thus an execution plan may not look the same day after day and week after week.
What is important on your part though is enabling the CBO to make the proper decision by supplying it with accurate information. You achieve that by analysing the tables (and indexes).

Similar Messages

  • Please tell me the soluation How can I give the soluation bilow issue.

    Dear Experts,
    Please tell me the soluation How can I give the soluation bilow issue.
    Currently user are facing one problem with respect of Line item report.
    In any of the line item report (i.e. FBL1N, FBL3N, FBL5N) we want to view header reference as column data wonu2019t appear in any of the reference filed.
    For Example in Bank G/L Cheque number was enter in reference field but same is not apear
    In Sales G/L or tax G/L invoice number is to be appear which is again invoice number as reference in document.
    Regards
    Devendra.
    Moderator: Give proper titles to your threads

    Hi,
    To add Reference field in line item report do below.
    From FBL1N output screen.
    Click change layout / (clr + F8)
    Now add Hidden field u2018Referenceu201D to column content and push copy button.
    Now you should be able to view reference field (BKPF- XBLNR) in line item report.
    Best Regards,
    Raju

  • Please tell me about SAP Fund management

    Hi SAP Experts
    please tell me about SAP Fund management  , which industries its usful ,
    Kindly forward me if you have any document for configared 
    thanks
    Siddartha

    Hi
    Funds Management allows management to set budgets for revenues and expenses within your company as well as track these to the area of responsibility.
    http://techbays.com/2009/03/14/sap-fi-funds-management-application-menu/
    Regards

  • What is uni code , please tell me

    hi experts,
    please tell me use of unit code.
    thanks
    subhasis

    Dear Subhasis,
    Unicode provides a unique number for every character irrespective of the platform, the program, the language.
    Primarily, computers just deal with numbers. They store letters and other characters by assigning a number for each one. Before Unicode was invented, there were hundreds of different encoding systems for assigning these numbers. No single encoding could contain enough characters: for example, the European Union alone requires several different encodings to cover all its languages. Even for a single language like English no single encoding was adequate for all the letters, punctuation, and technical symbols in common use.
    These encoding systems also conflict with one another. That is, two encodings can use the same number for two different characters, or use different numbers for the same character. Any given computer (especially servers) needs to support many different encodings; yet whenever data is passed between different encodings or platforms, that data always runs the risk of corruption.
    Unicode is changing all that!
    Unicode provides a unique number for every character, no matter what the platform, no matter what the program, no matter what the language. The Unicode Standard has been adopted by such industry leaders as Apple, HP, IBM, JustSystem, Microsoft, Oracle, SAP, Sun, Sybase, Unisys and many others. Unicode is required by modern standards such as XML, Java, ECMAScript (JavaScript), LDAP, CORBA 3.0, WML, etc., and is the official way to implement ISO/IEC 10646. It is supported in many operating systems, all modern browsers, and many other products. The emergence of the Unicode Standard, and the availability of tools supporting it, is among the most significant recent global software technology trends.
    Incorporating Unicode into client-server or multi-tiered applications and websites offers significant cost savings over the use of legacy character sets. Unicode enables a single software product or a single website to be targeted across multiple platforms, languages and countries without re-engineering. It allows data to be transported through many different systems without corruption.
    About the Unicode Consortium
    The Unicode Consortium is a non-profit organization founded to develop, extend and promote use of the Unicode Standard, which specifies the representation of text in modern software products and standards. The membership of the consortium represents a broad spectrum of corporations and organizations in the computer and information processing industry.
    Hope this helps you.
    Do award points if you found them useful.
    Regards,
    Rakesh

  • Please tell me a BAPI to get Closing balance of customer account based on Sales Organization?

    Hi Experts,
    A requirement has come up where I want to get Customer closing balance based on its sales organization as this particular customer is extented to 2 different sales organizations. I want to get the closing balance of individual sales organization vise.
    Please tell me a BAPI to get Closing balance of customer account based on Sales Organization?

    AFAIK there is no such BAPI, cause there is no database table with balance for customer per sales organisation. (No KNCx table for VKORG)
    First ask functionals (*) how to recover sales organisation from a FI document (I suppose for SD invoice it is easy if no merging between organisation) will be a little tricker for pure FI document like payment transactions (hope thet are quickly cleared...)  Then start from non cleared records of BSID (also BSAD if you use a past date of reference, in case you have to add the records of BSAD with clearing date greater than reference date) and cross it with SD information to break FI into sales organisation.
    Regards,
    Raymond
    (*) Ask for where do they store VKORG in FI documents

  • Pretty much confirmed interactivity between Word/Acrobat Mac vs. Same on PC is completely hosed in certain situations...Please tell me I am wrong!

    I've pretty much confirmed that the interactivity between Word/Acrobat Mac vs. Word/Acrobat PC is completely hosed in certain situations...Please tell me I am wrong!
    Situation: two workgroups need to work with each other sharing and editing word and pdf files for complex documents containing a TOC, list of figures, etc.
    Problems reproducible on many machine types and configs:
    1. WORD FILES: TOCs do not retain hot links within a doc that has been touched by a mac, and then re-saved as a PDF with the intent to have a linked TOC with chapter heads.
    2. PDF FILES: that have been touched by a mac, for example to edit the document properties, will loose all TOC function as in problem #1 above.
    In short, this rots for mac users who have to share/edit these files with PC brethren.
    The only solution that I found for mac users is this:
    Do your thing in Word 2008. Then have a PC version of Word and PC version of acrobat installed on a virtual drive like Parallels or VMWare, etc. Delete your TOC using MS Word for Windows, reinsert a new one, and then use the PC distiller installed into word by Acrobat Professional to create a new PDF that will be cross-platform functional.
    I had a meeting with the Mac users to explain this work around and they looked at me like I was crazy, and they pretty much said go pound sand, we don't care if the TOCs are linked or not.
    Well, I may be exaggerating there a bit, but NO ONE was happy with this solution, including myself. Our BIG question is "Is anyone going to fix this problem in the shortterm?!?" And it's Microsoft and Adobe both that seem to have some responsibility here...with an emphasis on Adobe, as it's clearly not just an MS isssue, as you can totally destroy a working TOC in a PDF file by just editing the file properties on a mac. Arg...
    I also find it frustrating that Adobe does not have a forum for cross-platform specific issues, which to me seems consipiritory. Ha!
    Message was edited by: hero jig

    ~graffiti wrote:
    PjonesCET wrote:I have word from people that know from Microsoft support, Say Adobe is talking hot air.
    Sure you do Phil.
    I follow the Microsoft office Mac. Word forum and excel Forum as much or, more so even than the Forums here.
    And All the experts say its a smoke screen.
    You can go and look at bio of all the people  by MS to answer questions and what their field of Expertise. Most have impressive credentials in their field. Many write professionally Documents, books and other such.

  • Can u please tell me events trigaring and first event in report

    hi experts,
    can u please tell me events trigaring and first event in report

    actually first event triggering in a report is intialization
    but before that there is one more event get triggered that is load of program.....This is the very first event which is trigger in a report program. Really I have never needed a reason to use this. But I would assume that it can be used when you want to do something before the INITIALIZATION event.
    Classical Reports can have these events, in the given order :
    initialization
    at selection-screen
    start-of-selection
    end-of-selection
    top-of-page
    end-of-page
    In addition o the above, the following events are possible in case of Interactive Reports -
    at line-selection
    at user-command
    at PFnn.

  • Please tell me why error is comming in select query

    Hello Experts... please tell me why the error is comming at mblnr in s_mblnr.and also tell me the solution for the same.
      SELECT a~mblnr
             a~bwart
             a~matnr
             a~werks
             a~lifnr
             a~menge
             b~budat
             INTO TABLE it_out
             FROM mseg AS a INNER JOIN mkpf AS b
             ON amblnr = bmblnr
             WHERE werks = p_werks
               AND bwart IN s_bwart
               AND mblnr IN s_mblnr  " here error is comming pls tell me how to correct. here s_mblnr is selectoptions.
               AND matnr IN s_matnr.
    Thanks for all the replies

    Hi use the below code..
    make sure from which table you are selecting the colums (fields)..
    SELECT a~mblnr
    a~bwart
    a~matnr
    a~werks
    a~lifnr
    a~menge
    b~budat
    INTO TABLE it_out
    FROM mseg AS a INNER JOIN mkpf AS b
    ON amblnr = bmblnr
    <b>WHERE a~werks = p_werks
    AND a~bwart IN s_bwart
    AND a~mblnr IN s_mblnr
    AND a~matnr IN s_matnr.</b>
    Hope it will solve your problem.
    <b>Reward points if it is useful.</b>
    Thanks & Regards
    ilesh 24x7

  • Could you please tell me the path of PR header text?

    Dear experts,
            I want to add delivery informtion in pr header text,but i can not find the path ,i only found the path:spro=>materials management=>Purchasing=>Purchase Requisition=>Texts for purchase requisition=>Define text  types,this path is to add PR line item text,could you please tell the path to add PR header text?
    Many thanks.
    Best Regards,
    Merry

    Hi,
    There is no SPRO configration to create PR Header text
    Use the Function module
    Goto SE37
    Use FM CREATE_TEXT - for create header text, SAVE_TEXT - for change.
    Parameters:
    TDOBJECT = 'EBANH'
    TDNAME = purchase requisition number (with leading zeros)
    TDID = 'B01'
    CLIENT and LANGU - client and languag
    regards,
    santosh

  • Could you please tell me the BAPI of CJ37 or CJ38?

    Dear experts,
           Could you please tell me the BAPI of CJ37 or CJ38?
    Best Regards,
    Merry

    Hi Merry,
    Gotot Transaction CJ37 screen. Gotot Menu, System >> Status.
    There you will get the Program Name. Double Click on that name, it will open the Source code of the T-code.
    Goto Menu Attribute. It will show the Package of T-code. IT will be KABP.
    Now double Click on the Package name, it will navigate to T-code SE80 i.e. Object Repository.
    There under the folder Function Group you can search for BAPI or RFC of your interest.
    You can get the Exits or BADIs also relevant to the T-code CJ37/38.

  • Please tell me what tool is the magic wand tool on elements 11

    hallo please tell me what tool is the magic want tool that they talk about in photoshop i only have elements 11

    Go to the Expert tab
    The icon looks like a pole with a star at the end. The key stroke is W

  • Can someone please tell me on how to modify this code so that I dont have to enter the file name at all?

    Hello
    can someone please tell me how to modify this code so that I dont have to enter the file path at all? When i give the same file path constants to both the read and write VIs I'm getting an error message.
    Attachments:
    read and write.vi ‏11 KB

    Yup use the low level File I/O opening the reference once, and closing it once.  
    As for the path selection you have an unwired input which is the path to use.  Programatically set that and you won't be prompted to select a path.  Usually this is done with a path constant to a folder, then using the Build Path, to set the file name in that folder.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Can Someone please tell me how to save movie for email & web?

    Can Someone please tell me how to save movie for email & web? I have created a few small videos, (last one was only 3 minutes), and I have tried to save them many different ways, but when I try to send them via email, it takes forever to send and for others to open.
    People send me video links all the time, and they never take that long. What am I doing wrong?
    Thanks for your help.
    Sharona

    People send me video links all the time, and they never take that long...
    Karl is (aside many other things) expert on how-tos and codecs, but one more thing...:
    video link:
    you have two options for sharing video with the world: you can send the whole file to someone - as an xx MB attachement to a mail...; or, you load up the video to some website (.mac, youtube, whatever...) and send just the link x kB to that site...
    asymmetric:
    normal "internet accounts" are asymmetrically (A-DSL)... means: you have FAST downloads, but SLOW uploads.... (my socalled 2k-DSL connections offers downloads 20x faster then my uploads, just to give you an impression...)
    so, uploading my videos to my website needs easy >30min for a letssay highly compressed 2min project.... the link to it is just >1kB; the download/watching of the movie is almost instant on/realtime....
    now, back to Karl, concerning choosing the right codec/compressor... Karl?
    i DO love these phrases in news-shows...

  • Could you please tell me where can I ask for  the S-User ID and password

    Dear SAP Experts,
    I passed the SAP exam (ABAP with SAP NetWeaver7.0) on August 20,2009
    and receieved the Certificate document from SAP.
    Unfortunately,I didnot do any project on sap.
    Until Last Week,I have the chance to do it.
    so I have to visite SAP sites ,
    but It must use the S-User ID and password.
    Could you please tell me where can I ask for it.
    Best regards,
    LiYing.

    hi,
      after compelting the certiification sap will provide the suser is and password along with sap certificate, generally it will take 4 -5 weeks to get the certificate if u still not received contact sap education locally
    regards,
    ram

  • Please tell me about "start_t4 - timer T8 already running" log.

    Hi Expert,
    SYSLOG:"start_t4 - timer T8 already running"
    Please tell me about above syslog message.
    This case is following network diagram.
    [ISDN RT1]-BRI0---<<<IPSEC over ISDN>>--[ISDN RT2]
    We could not  connect to ISDN-RT2 by IPSec over ISDN.
    Maybe I think that this trouble may be caused by those syslog message.
    Those syslog message was many output on syslog server.
    Please help me.
    Regards,
    Takuro

    Hi Paolo,
    Many thanks for your advice.
    Actually, this case was Carrier side trouble.
    So,this trouble already resolved. :-)
    Thanks again.
    Regards,
    Takuro.

Maybe you are looking for