Difference between a regular subquery and a correlated subquery

Can someone explain EXACTLY what is a correlated subquery and could you give me an example? I'm taking an Oracle DBA class and I would appreciate your feedback. Thanks. :)

"Normal" subquery (the subquery is executed only once for the statement):
select name
from emp
where salary > (select avg(emp2.salary) from emp emp2);
Correlated subquery (it is executed for each row of the main query):
select name
from emp
where salary > (select avg(salary) from emp emp2
where emp2.deptno = emp.deptno);
Can someone explain EXACTLY what is a correlated subquery and could you give me an example? I'm taking an Oracle DBA class and I would appreciate your feedback. Thanks. :)

Similar Messages

  • Difference between a master DVD and a regular DVD

    Can anyone explain to me the difference between a master DVD and a regular DVD. What is the workflow from FCP to compressor then DVDSP as far as bitrate settings etc? Thanks in advance!!

    LOL - I wouldn't let it worry you... we all start somewhere.
    When you click on 'Build and Format' you get a window appearing which lets you set all kinds of different parameters. At the bottom you will see two drop down boxes. Choose 'Hard Drive' in the top one, and '.img' in the second. This will tell DVDSP to create a disc image and put it in the location that you then specify. When done, you can double click this image and it will open like a DVD disc would - if you have got DVD Player running then your project will run as if it was on a physical disc (although slightly quicker).

  • Differences between XI 3.0 and PI7.0?

    Hi Experts,
    I want to know the major differences between XI 3.0 and PI7.0?
    can anyone suggest me some weblogs which explains the all the new features of PI7.0.....as i'm very much keen to learn PI7.0
    Thanks
    Faisal............

    Hi,
    There is no different between XI3.0 and PI 7.0 but there is a lot difference in XI3.0/PI 7.0 and PI 7.1.
    Refer the below thread for Xi and PI difference:
    PI 7.0 and XI 3.0
    there are many threads with sme topics
    New highlights for SAP NetWeaver Process Integration 7.1 are:
    • Enterprise Services Repository as a central storage location for enterprise service definitions and lifecycle management data for all enterprise services
    • Universal Description, Discovery, and Integration (UDDI) 3.0–compliant services registry for runtime management of enterprise services
    • Improved support for standards such as Web Service Reliable Messaging (WS-RM), WS Policy, Security Assertion Markup Language (SAML)
    • Extended support for high volume scenarios
    • Business Activity Monitoring for process definition of milestone monitoring (event correlation)
    • Improved SAP NetWeaver Administrator support for central configuration and administration of both mediated and point-to-point scenarios.
    • XML payload validation
    • Process editor modeling enhancements: step groups, integrated alert management, configurable parameters
    • Integration of human interaction (generic user decision)
    • WS-BPEL 2.0 preview.
    • Message Packing.
    • Local Processing in Adapter Engine.
    • Reusable UDF’s.
    • Lookup function with multiple results.
    Refer the below link form where the most of the above information has been taken:
    1) Capability and Enhancements of SAP NetWeaver Process Integration 7.1:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/community/capabilityandEnhancementsofSAPNetWeaverProcessIntegration7.1&
    2) New SAP NetWeaver Process Integration:
    /people/udo.paltzer/blog/2007/04/26/new-sap-netweaver-process-integration-release-planned-for-2007
    3) Enhancement in PI 7.1:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/07/27/briefdescriptionaboutEnhancementinPI7.1&focusedCommentId=40564
    4) SAP NetWeaver Process Integration 7.1 - Overview of New Capabilities:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/706005a3-3bd6-2910-91ae-a2016239bdcf
    5) SAP NetWeaver PI 7.1
    /people/daniel.bianchin/blog/2007/12/19/all-you-wanted-to-know-about-sap-netweaver-pi-71-and-more
    This section has all the relevant links for each topics:
    • Enterprise Services Repository:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4073b4c4-7137-2a10-a5a9-abb618b7a5e7
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0301486-758c-2a10-9d84-a195556df422
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/903a4127-5403-2a10-0a96-e9452c3ab1de
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0f90f22-678c-2a10-91a0-f1f1bf7ff191
    • Usability Features in SAP NetWeaver PI 7.1 Development and Configuration Times
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0e7734f-e969-2a10-24b6-df58a710941c
    • Advance adapter engine:
    /people/william.li/blog/2008/01/10/advanced-adapter-engine-configuration-in-pi-71
    /people/william.li/blog/2008/02/07/display-adapter-synchronous-message-content-in-rwb-of-pi-71
    • Preview on New Features of the Integration Directory in SAP NetWeaver Process Integration 7.1
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10c0de4b-7876-2a10-e286-8412668643a8
    • Usability Features in SAP NetWeaver PI 7.1 Development and Configuration Times:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0e7734f-e969-2a10-24b6-df58a710941c
    • SAP Network Blog: Share User-Defined Functions in Message Mappings of PI 7.1
    /people/william.li/blog/2008/01/02/sap-pi-71-mapping-enhancements-series-share-user-defined-functions
    • Preview on New Features of the Integration Directory in SAP NetWeaver Process Integration 7.1
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10c0de4b-7876-2a10-e286-8412668643a8
    • SAP Network Blog: Mapping Enhancements in SAP NetWeaver Process Integration (PI) 7.1
    /people/jin.shin/blog/2008/01/11/sap-pi-71-mapping-enhancements-series-mapping-enhancements-demo
    • New Business Process Engine Features in SAP NetWeaver Process Integration
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0068bc1-6f8c-2a10-52bb-c6ee3562feb2
    • Folders for more flexible and organized way of development.
    /people/william.li/blog/2007/08/07/using-folders-in-pi-71 -- Folders in PI 7.1
    • High Volume support in PI 7.1
    /people/holger.faulhaber/blog/2007/12/12/high-volume-support-in-pi-71
    • Upgrade to SAP NetWeaver PI 7.1
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8085e299-718c-2a10-de94-928f62b763ce

  • Difference between Activating Master Data and Attribute Change Run

    Hi
    Is there any difference between Atribute change run and Activating Master data functionaaly???
    if wha it is???
    can any one explain clearly?
    Thanks
    Chinna

    When u load master data and its attribute to ur data target and if u change any data or attributes of ur master data,in order to update new data to ur data target attribute change run is performed.
    When u create a characteristic and if u keep it as master data and activated..it is master data activation
    Activating Master Data
    When you update master data from an SAP system the master data is imported in an inactive state. You must activate the new master data so that it can be accessed and used for reporting purposes.
    For more information, see Versioning Master Data.
    Choose the path InfoObject Tree Context Menu of Corresponding Characteristic Activate Master Data.
    Upon Activation there are two scenarios to choose from:
    The Corresponding Master Data Is Already Being Used in Aggregates in the InfoCube:
    If you are already using the available master data in aggregates in InfoCubes, you cannot activate the master data individually. In this case, proceed as follows:
    1. In the main menu, choose the path Tools Hierarchy/Attribute Change.
    2. Proceed as described in System Response upon Changes to Data: Aggregate.
    The system now automatically restructures and activates the master data and its aggregates.
    Please note that this process can take several hours if the volume of data is relatively high. Therefore, you should simultaneously activate all of the characteristics that are affected by changes to their master data, at regular intervals.
    The Corresponding Master Data Is Not Used in Aggregates:
    Choose the path InfoObject Tree ® Context Menu of Corresponding Characteristic Activate.
    The system now automatically activates the master data so that it can be used directly in reporting.
    If there is any change r newly added records in master data..then that particular data will not b avialable for the reporting unless u do activate master data...
    if u r using aggregates and then there is any change in master data ...then that particular master data change wil not b available for the reporting unless u do arrtibute change run for that info object.(T-code RSATTR)
    Master data attributes and hierachies are used in cube aggregates also. So to do update the latest master data attributes values in the aggregtes attribute change run need to be performed.So Attribute change run also updates the master data attributes in aggregates which is not apart of master data activation.
    Text loads do not need attribute change run. Attributes, hierarchies and aggregates need attribute/hierarchy change runs. If you do not have aggregates, just activating the master data is same as attribute change run.

  • Difference between global temporary table and with clause

    what is the difference between global temporary table and with claue .(with clause is used as table in select query)

    what is the difference between global temporary table and with claue .(with clause is used as table in select query)Its big difference between the two.
    Global temporary table exists for a session or a transaction while, with clause lives only for a query.
    GTT is a named permanent storage table whose data flushes away on session exit or at end of a transaction while WITH clause just provides names to a reference data within a query (which is as good as having union subquery in FROM clause)
    eg
    SQL> with c as
      2  (
      3  select 1 id1, 2 id2 from dual union all
      4  select 2,4 from dual union all
      5  select 3,5 from dual)
      6  select * from c
      7  /
           ID1        ID2
             1          2
             2          4
             3          5
    SQL> ed
    Wrote file afiedt.buf
      1  select *
      2  from
      3  (
      4  select 1 id1, 2 id2 from dual union all
      5  select 2,4 from dual union all
      6* select 3,5 from dual)
      7  /
           ID1        ID2
             1          2
             2          4
             3          5But GTT serves its purpose very well in case of session specific transaction and the scnearion with multiple users working on same data.

  • Difference between alternative calculation type and alternative condition b

    What is the difference between alternative calculation type and alternative condition base value?

    Hi Nitin
    Alternative calculation type:
    Suppose my gross price (PB) is Rs.100 for some metal per kg and I want to calculate surcharge based on todays RBI index of commodity rather than simply giving some 2%. I want to account todays RBI index in determinig Condition value.
    It is possible to do that by little alteration of regular routine.
    Alternate Condition base value:
    I am procuring 5 different variety of pens at different quantities at varying rates from 0 to 25 in a sing le PO. And I get the total header value of 1000. I will get a discount of 10% if the PO value reaches 1000. I have to subsequently pass on the discount of Rs.100 now to all the 5 line items. In general SAP calculates it based on the values of each line item and proportionately distributes. However If i want this discount to be distributed according to the quantity of each pen. You can acheive this with little alteration of Routine.
    Hope this clarifies your doubt.
    If found helpful, Pls reward.
    Regards
    edwin

  • Difference Between OTL Retro Entry and Salary Change Retro Entry in Payroll

    Hi Everyone,
    We are developing a custom interface from Payroll to Projects which will post all the entries from OTL.
    OTL->Payroll->Projects
    We are stuck with identifying the Difference Between OTL Retro Entry and Salary Change Retro Entry when we process Retropay in Payroll.
    After retropay, we come we would see the retro element entries for both them with same name and creator_type is either EE or RR for both them.
    In our interface we have to treat retro entries through OTL and Salary Change in differentway.
    Has anyone can give some suggestions on this please asap as we are heading towards UAT very soon.
    Thanks in Advance..!!
    Anand

    Hi Anand,
    Element with creator_type RR are created/generated by Retropay.
    Elements with creator_type EE are regular element entries.

  • What is the difference between Recon. Account and Alternative Recon. Accoun

    hi
    any body please tell me . What is the difference between Recon. Account and Alternative Recon. Account.

    Hello sairama,
    Reconciliation account- For each subledger account , you must keep at least one reconciliation account in the general ledger. When you post to an account in the subledger, the system automatically posts to the corresponding reconciliation account. The "Receivables from goods and services" account is an example of a reconciliation account for customers. Enter Customer in the Reconciliation account for account type field. Enter a Vendor in this field for a vendor reconciliation account. Using the reconciliation account procedure, it is possible to create a balance sheet and a profit and loss statement at any time, since the amounts posted to subledger accounts are also posted automatically in the general ledger.
    During regular reconciliation, you check whether the balance of the reconciliation account matches the balance of the corresponding subledger account.
    You define reconciliation accounts by specifying in the G/L account master record the account type (such as fixed assets, vendor or customer) for which the account is to be used. In this way, the account can only be assigned to accounts in the corresponding subledger. You set the assignment of the subledger account to a reconciliation account in the master record of the subledger account. You cannot post to reconciliation accounts manually .
    ============================================================
    Alternative Reconciliation account- Special G/L transactions are identified by a special G/L indicator. The system uses the specifications (posting key and special G/L indicator) to determine the alternative reconciliation account.
    When you post a special G/L transaction, the system does not post to the normal reconciliation accounts but instead automatically to alternative accounts, that is, special G/L accounts. Consequently, you do not transfer the balances of these accounts either. Instead, the system posts to the appropriate accounts automatically when the open items are transferred.
    Hope I had been able to help you. Please assign points.
    Rgds
    Manish

  • Difference between r/3 report and bw report

    Hi
    can u give me detail difference between r/3 report and bw report.all information is geting in r/3 y bw report
    plz send me any document if u have
    prasanth.k

    Hi,
    These two reporting seem to function similarly with slice and dice.
    A) The major benefits of reporting with BW over R/3 are in terms of performance and analysis.
    1. Performance -- Heavy reporting along with regular OLTP transactions can produce a lot of load both on the R/3 and the database (cpu, memory, disks, etc). Just take a look at the load put on your system during a month end, quarter end, or year-end -- now imagine that occurring even more frequently.
    2. Data analysis -- BW uses a Data Warehouse and OLAP concepts for storing and analyzing data, where R/3 was designed for transaction processing. With a lot of work you can get the same analysis out of R/3 but most likely would be easier from a BW.

  • The difference between VGA, DVI-D and ADC?

    Hi.
    The difference between VGA, DVI-D and ADC and which should be used with a T244 widescreen monitor into a Quicksilver G4 with a GeForce2 MX nVIDIA (0x10de) card. What's a good upgrade card if the above is not good enough?
    Thank you for your input.
    Walter

    Look at this link http://en.wikipedia.org/wiki/DigitalVisualInterface
     Cheers, Tom

  • The difference between AIR-ANT5135D-R and AIR-ANT5135DB-R

    Hi,
    Anyone know what is the difference between AIR-ANT5135D-R and  AIR-ANT5135DB-R ?
    From the dynamic configuration tools for 1252 and 1242, AIR-ANT2422DB-R is inside one of the antenna option.
    However, I can't find it in the "Cisco Aironet Antennas and Accessories Reference  Guide"
    http://www.cisco.com/en/US/prod/collateral/wireless/ps7183/ps469/product_data_sheet09186a008008883b.html
    Inside the document there is only AIR-ANT5135D-R.
    likewise for the 2.4 GHz,  AIR-ANT2422DB-R is inside the dynamic configuration tools and not inside "Cisco Aironet Antennas and Accessories Reference  Guide"
    Any help would be appreciated
    Thanks,
    Richard

    Found the difference, AIR-ANT5135DB-R and       AIR-ANT2422DB-R are  non-articulating antennas.
    Thanks!
    Richard

  • The difference between Telepresence Content Server and MSE 3500

    Good day! Could someone explain me what's the difference between Telepresence Content Server and MSE 3500? Why do I need to obtain two these devices for sorting out my tasks? I want to understand gist of the first and the second devices.

    In addition to what Jonathan posted above, here is a Capture Transform Share Solution Guide that goes over a little bit of what the TCS and MXE are and some possible deployment scenarios.
    In short, TCS is used to record video conferences or lectures that can be streamed on demand or live using various streaming or distribution methods.  One such distribution method is using the MXE 3500 to ingest the recordings from TCS and convert them to different media types and add in-video content such as logos etc.  However, from the MXE, you can't send the video back to the TCS for viewing, you'd need to send that off to another viewing portal such as Show and Share.

  • What is difference between  Service map iview and Workset Map iview

    Hi Experts,
                        Can anyone tell me the difference between  service map iView and Workset Map iView.
    When I am creating these iViews, its seams both are same. I canu2019t find difference still, can anyone help me out of this
    Thanks in Advance
    Janardhan

    Hi,
    Service Map Iview:The Service Map iView is an ERP-specific variant of the portal Workset Map iView. It serves as a central point of entry and guided access to the services of SAP service modules such as the Manager Self Service (MSS) module, or the Employee Self Service (ESS) module.
    Workset Map iview:A Workset Map is the equivalent of a site map, providing users with explicit information on the functionality that is available in a given workset. It is based on an iView, and serves as a central point of entry and guided access to the contents of a workset.
    if you want to more info pls go thr the below thread
    Workset Map iView
    i hope it will help you
    Thanks,
    Sreeni.

  • What is difference between ADF Task Flow and Faces-Config - when delpoy ?

    What is difference between ADF Task Flow and Faces-Config? When I create navigation between pages with ADF task flow then the navigation don't work when I deploy my application to Weblogic 10.3. When I use default server then navigation works fine. With Faces_config in both situations all works ok - on Stanalone server and default.
    Where is the problem?
    Best regards!

    Shay, I don't use both faces-config and adf task flow! When I failed with task flow I tried faces-config.
    I have active on my weblogic - adf.oracle.domain(1.0,11.1.1.0.0). This is the right ADF? If yes then where is the problem?
    Best regards!

  • What's the difference between a web site and a web application?

    I'm stumped trying to come up to a difference between a web site and a web application for myself. As I see it, a web site points to a specific page and a web application is more of some sort of 'portal' to content and information.
    But where I'm stuck is that a web application is still viewed through a browser (is it not?) and a web site can still view content dynamically, making the line between web site and application prety gray.
    For instance, does a web site using ASP.NET or AJAX (I assume ASP.NET is AJAX's proprietary sibling, if not, ignore ASP.NET AND concentrate on the AJAX), becomes a web application because it can retrieve data dynamically and asynchronously or would a website
    using PHP and a CMS be more of a web application because it forms the pages on request, based on the request of the client and its content in its databse?
    Or maybe I'm totally wrong here - what differenciates between a web application and a website?
    http://support.peopleperhour.com/entries/68630566--C-mon-lets-Watch-The-Other-Woman-2014-full-movie-online-free
    https://glossicom.zendesk.com/entries/68643806--%D0%BC-v%C9%AA%C9%9Bc-%C3%A4st-Watch-The-Lucy-2014-full-movie-free
    https://cloudhance.zendesk.com/entries/68115098--%D0%BC-v%C9%AA%C9%9Bc-%C3%A4st-Watch-The-Lucy-2014-full-movie-free
    This is totally personal and subjective, but I'd say that a website is defined by its content, while a webapplication is
    defined by its interaction with the user. That is, a website can plausibly consist of a static content repository that's dealt out to all visitors, while a web application depends on interaction and requires programmatic user input and data processing.
    For example, a news site would be a "website", but a spreadsheet or a collaborative calendar would be web "applications". The news site shows essentially the same information to all visitors, while the calendar processes individual data.
    Practically, most websites with quickly changing content will also rely on a sophisticated programmatic (and/or database) backend, but at least in principle they're only defined by their output. The web application on the other hand is essentially a program that
    runs remotely, and it depends fundamentally on a processing and a data storage backend.
    http://support.peopleperhour.com/entries/68125597--%D0%BC-v%C9%AA%C9%9Bc-%C3%A4st-Watch-The-Lucy-2014-full-movie-free
    https://cloudhance.zendesk.com/entries/67541393--Watch-The-Godzilla-2014-free-Online-Full-Movie-HD-Quality
    http://support.peopleperhour.com/entries/68168787--Watch-The-Godzilla-2014-free-Online-Full-Movie-HD-Quality
    https://glossicom.zendesk.com/entries/68161538--Watch-The-Godzilla-2014-free-Online-Full-Movie-HD-Quality
    There is no real "difference". Web site is a more anachronistic term that exists from the early days of
    the internet where the notion of a dynamic application that can respond to user input was much more limited and much less common. Commercial websites started out largely as interactive brochures (with the notable exception of hotel/airline reservation sites).
    Over time their functionality (and the supporting technologies) became more and more responsive and the line between an application that you install on your computer and one that exists in the cloud became more and more blurred.
    If you're just looking to express yourself clearly when speaking about what you're building, I would continue to describe something that is an interactive brochure or business card as a "web site" and something that actually *does something that feels
    more like an application as a web app.
    The most basic distinction would be if a website has a supporting database that stores user data and modifies what the user sees based on some user specified criteria, then it's probably an app of some sort (although I would be reluctant to describe Amazon.com
    as a web app, even though it has a lot of very user-specific functionality). If, on the other hand, it is mostly static .html files that link to one another, I would call that a web site.
    Most often, these days, a web app will have a large portion of its functionality written in something that runs on the client (doing much of the processing in either javascript or actionscript, depending on how its implemented) and reaches back through some
    http process to the server for supporting data. The user doesn't move from page to page as much and experiences whatever they're going to experience on a single "page" that creates the app experience for them.

    ...can i make as many iweb websites as i want? ...and as many blogs as i want? ...i have never made one before....
    ....although, i do have my own small business and i do have a website that i paid a guy to make and also host....(which is a waste of $$$$ in my opinion as i think i can do a better job making one myself through iweb) ....
    ...anyways, i know it is splitting hairs but what exactly is the diff b/w a blog and a website ....i am under the impression that a blog is just a personal newsletter sort of thing,...?

Maybe you are looking for

  • ISE 1.3 NAC Web Agent for Posture

    Hi, We have two categories of wireless users (Vendors and Guests) and we need only Vendors to do posture (AV update check).We need to have two different portals to be redirected once each category of user hit as Vendor portal should also do device co

  • JATO 2.0 Licensing for Sun ONE Studio 4 Update 1 EE

    I have a serial number for Sun ONE Studio 4 EE which I'm also able to use for Sun ONE Studio 4 Update 1 EE. I downloaded JATO 2.0 as offered in the Studio Update Center. It asked for a serial number so I tried my Studio serial number but it didn't wo

  • Can any one send functional specs

    hai every body, My name is ravi. can any one send functional specs.. and what is functional specs. how it is useful Awaiting for response. Thank u.

  • Test Web Site

    I just built this web site, and its ready for critics... Please look at it and let me know if there any any issues with it... design, look, type, text, something not understood, something you wish was on there, something I should take out, if anythin

  • Problem with duplicated mc's

    hey all- i have file that has profiles of 15 people. i made duplicate mc's from the first mc i built for each person. each personal mc shares a couple other movie clips (one for some masked scrolling, one to hold the buttons and actions for the scrol