Using exists with dual

I was execting the following query to be cost-effective but the the select from dual shows a cost of 17. The inner query accesses a view.
SELECT 1 into x
FROM DUAL
WHERE EXISTS (
SELECT 1
FROM data_v
WHERE project_id = 9031
AND empid = 497681
AND role = 'PROH')

I don't think there's a significant performance degradation with regards to the use of dual in that case. My assumption is that there must be some problem with the DATA_V view that needs optimization. If I were to change the subquery to something else, it would have a change in performance.
However, you may want to consider just reconstructing your query to this:
SELECT 1 into x
FROM data_v
WHERE project_id = 9031
AND empid = 497681
AND role = 'PROH'
AND rownum = 1; << the only thing I added to check just 1 record for existence
There won't be much performance gain if the DATA_V is not optimized. The change was just to remove the use of Dual and achieve the same results.

Similar Messages

  • Using Browser with dual monitors.

    When I am using any browser with both my iMac as one Monitor and the Orion Tv as another monitor, and if for some reason the tv shuts off after a period of not being used. Then the browser used to revert back to my main monitor when I was using mavericks. But now when this happens my browser goes to the tv. And I have to turn it on everytime just so I can find the browser screen so I can use it. Or I have to hold down on the browser i'm using and force fully shut it down and then re-open a new window.  Anyone else having this issue? And if so have they fixed it....if so how?

    i tried it and openbox dualhead support is very good. you can use the "monitor" config option to make apps switch on keystroke or start on a specific monitor.
    dont know what good a screenshot would be as it looks the same as any other dual head setup

  • Use of addImageTheme method with dual table in query

    Is it possible to specify a query using the dual table that specifies a BLOB type? I'm trying to specify a image theme dynamically using the bean API. My image is a JPEG.

    Hi Jen,
    if you create a table with a BLOB to store the image, plus a geometry column with the image MBR, then you can easily build the dynamic image theme using the API. Your SQL on the image theme would be something like: select mbr, image from image_table.
    I'm not sure if there is a direct function at the SQL level that takes an image file and generates a BLOB. Maybe someone has done something similar. If this function exists, then you may be able to create an image theme issuing a SQL with dual table.
    Joao

  • HT204053 I need to use an existing ID (email address) on a new iPhone. It tells me "choose another ID - that one is in use," with the option to "use existing ID," however, it is an endless loop, referring me only to change my password on the existing ID.

    I need to use an existing ID (email address) on a new iPhone. It tells me "choose another ID - that one is in use," with the option to "use existing ID," however, it is an endless loop, referring me only to change my password on the existing ID.
    How do I enable my new device with an existing ID - I do not need to change the password for the millionth time!
    None of the FAQs (or the Community choices below) address new devices, they are all about APPS and iCloud stuff.

    If it is an existing iCloud ID, you should be able to just go to Settings>iCloud and sign in with it.

  • I have bought a new airport express and using it with my macbook (iTunes 10.2.2). I have joined an existing network for internet in my home and with that i am trying to play the music via itunes but there is audio dropouts every 60 secs or so. any soln ?

    I have bought a new airport express and using it with my macbook (iTunes 10.2.2). I have joined an existing wireless network for internet in my home and with that i am trying to play the music via itunes but there is audio dropouts every 60 secs or so. I am using a set of speakers from kenwood connected to the airport express. The operating system on my macbook is mac os X 10.5.8. i am sure it is not a problem of streaming music online because i have even tried playing music which are stored in my macbook.
    Is there any problem with the setting in itunes or quicktime ? Kindly reply...... I am waiting for your valuable suggestion.
    Thank you a lot in advance.

    I am shocked to have found this same AX audio dropout problem starting TODAY, every few seconds the audio just drops for a couple seconds and then resumes:  Latest software versions of everything.  No iPad, iPhone or Touch.  Internet hardwired to D-Link DES1105 (1000baseT Switch) hardwired to new 80211N AX, AX optical to stereo, AX Wi-Fi internet to basic 1st-gen MacBook operating at 80211G, and an older 'G' AX extender at the far end of the house, away from all this.  The MacBook streaming iTunes is usually 12 feet from AX.  I've used this setup for years of trouble-free AirTunes / Airplay until today.  Today I also found 2 very reliable fixes and 1 way to force a dropout, but first, I read some posts and tried ALL following settings one-at-a-time and restored them ALL because NONE of them helped:  Turned off IPV6.  Streamed to multiple speakers 'Computer' and 'AX' (restored to just AX).  Turned off 'Ask to Join new (WiFi) Networks'.  Turned off Bluetooth (can't live without Magic Trackpad, so glad that wasn't it).  Here's my discoveries:  Lo and behold, each time I click the Airport icon in the Menu (you know it shows you've got 4 bars from AX) when the status switches to 'Looking for Networks' for a second it CAUSES the AX audio to drop out for a couple seconds (it never did that before today.)  iTunes still playing, streaming, AX laser still lit, but the 'PCM' light on stereo and the sound GOES OUT EVERY time I click the Airport icon in the menubar, just like the regular, annoying dropouts.  So, to reduce traffic I quit Safari (3 tabs, no streaming, just Gmail, Google, and Netflix browsing).  Lo and behold, the dropouts stopped altogether.  No other Web apps going (not iTunes Store, Genius, Ping, nothing), so I launched Chrome to the same 3 tabs and the dropouts HAVE NOT RETURNED.  That's right, not only did simply QUITTING SAFARI cure it, and Chrome doesn't contribute to it, but I can demonstrate it just by forcing my Airport to re-scan.  Works for me, written using Chrome.  The other reliable fix is to hardwire MacBook to the Switch.  This is obviously not ideal, but Airplay audio doesn't drop out over Ethernet.  Also, in all my tests, it made no difference whether iTunes did the streaming, or Airfoil did.

  • Use of business partner functionality in combination with dual control

    Is there a generally agreed upon procedure to use the business partner functionality in combination with dual control? The problem is that when you block a business partner, the customer/ vendor master data aren't blocked automatically. You can then still use them in transactions, which leads to problems.
    So is there a way to make this work or a procedure to do this?
    Niels Vanwingh

    Thanks Masa,
    I did notice the 'Add external supplier from' in create supplier or bidder option. However there is a small catch and your experience may help.
    Let me explain the requirement and scenario here in SRM 7.
    We are implementing the Registration of Supplier scenario; both ROS and SRM are in same client. When a potential supplier registers themselves in the registration system, a BP number is created (an Internal number range is defined for this). After accepting the potential supplier in pre-select screen the purchaser has two options to transfer the potential supplier from the ROS system to SRM
    Option 1: He can select the accepted potential supplier from the supplier directory option and transfer the business partner to SRM. In this case the business partner number of the potential supplier is retained in SRM and a business partner with supplier and bidder tag is created. However the purchaser does not have any option to select which type of business partner he would like to create like supplier or bidder.
    Option 2: Purchase can go to create supplier or bidder option and choose the u2018Add external supplier formu2019 from the ROS system and create the business partner. The ROS business partner details are copied to the create supplier screen, but the purchaser have to provide an external business partner number for the supplier. This is because we have defined external number range for business partner for the vendors that are replicated from ERP to SRM.
    Objective is the ROS business partner should be retained in SRM with option to create as supplier and bidder and then manually create ERP supplier with same SRM BP number and map against SRM supplier.
    Is there any way we can achieve this?
    In SRM 5.5 with Manage business partner functionality we could achieve as system give us the option which business partner type we would like to create as well as retains the ROS BP number in SRM.
    Regards
    Sandeep

  • Receiving multiple files with dual extension using file adapter

    Hi,
    The scenario where I am implementing requires multiple files of different names to be picked(ABC.txt) and dropped at destination(ABC.txt.pgp) up by my File Sender and Receiver adapters.  Any idea on about how the configuration for receiving multiple files with dual extension for receiver adapter is to be done?
    Note:- currently, The scenario is working fine without dual extension. i.e Its picking all files which starts with ABC and creating at destination as it is. even I configured as ABC.txt.pgp, but its not creating the second extension.
    Thanks in Advance
    Manmadha

    Hi,
    Try to concatenate '.pgp ' to the source file name to create the target file name for the receiver file adapter, by accessing the Adapter Specific Attributes using Java user defined function. This might work.
    Reference links:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm">SAP Help - Accessing Adapter Specific Attributes</a>
    <a href="/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14 - XI: The same filename from a sender to a receiver file adapter - SP14</a>
    Regards,
    S.Santhosh Kumar

  • Please help to re-write this query using exists or with

    Hi please help to re-write this query using exists or with, i need to write same code for 45 day , 90 days and so on but sub query condition is same for all
    SELECT SUM (DECODE (t_one_mon_c_paid_us, 0, 0, 1)) t_two_y_m_mul_ca_
    FROM (SELECT SUM (one_mon_c_paid_us) t_one_mon_c_paid_us
    FROM (
    SELECT a.individual_id individual_id,
    CASE
    WHEN NVL
    (b.ship_dt,
    TO_DATE ('05-MAY-1955')
    ) >= SYSDATE - 45
    AND a.country_cd = 'US'
    AND b.individual_id in (
    SELECT UNIQUE c.individual_id
    FROM order c
    WHERE c.prod_cd = 'A'
    AND NVL (c.last_payment_dt,
    TO_DATE ('05-MAY-1955')
    ) >= SYSDATE - 745)
    THEN 1
    ELSE 0
    END AS one_mon_c_paid_us
    FROM items b, addr a, product d
    WHERE b.prod_id = d.prod_id
    AND d.affinity_1_cd = 'ADH'
    AND b.individual_id = a.individual_id)
    GROUP BY individual_id)
    Edited by: user4522368 on Aug 23, 2010 9:11 AM

    Please try and place \ before and after you code \Could you not remove the inline column select with the following?
    SELECT a.individual_id individual_id
         ,CASE
            when b.Ship_dt is null then
              3
            WHEN b.ship_dt >= SYSDATE - 90
              3
            WHEN b.ship_dt >= SYSDATE - 45
              2
            WHEN b.ship_dt >= SYSDATE - 30
              1
          END AS one_mon_c_paid_us
    FROM  items           b
         ,addr            a
         ,product         d
         ,order           o
    WHERE b.prod_id       = d.prod_id
    AND   d.affinity_1_cd = 'ADH'
    AND   b.individual_id = a.individual_id
    AND   b.Individual_ID = o.Individual_ID
    and   o.Prod_CD       = 'A'             
    and   NVL (o.last_payment_dt,TO_DATE ('05-MAY-1955') ) >= SYSDATE - 745
    and   a.Country_CD    = 'US'

  • How to use Real time execution trace toolkit with Dual-core processor??

    hi there
    the situation as follows:
    i have a computer (PC and Laptop) types with Dual-core processors, and am trying to do simulation using Multi-core technology and based on different simulation scenarios...starting from sequantial processing,.......Piple lining processing strategy. so that i can differentiate the time delay between those types of processing based on (Using 1 processor then dual-core processor Computers)
    my question is: As i read through Ni's white papers i saw many notes refer to Real-time execution trace toolkit to investigate the (processing-time , etc) of multi-core processors in processing diffenent algorithms. My algorithms are to be run on 1 computer with dual-core processor BUT, not in real time environments, that is ( No hardware to be connected to my pc) only algorithms running on my pc....
    So, is it possible to use Real time execution trace toolkit  or anyother tools in LabVIEW to show processing-delays and/or anyother timing critical issues without using my application for  real- time hardware.???
    in other words: how to use Real time execution trace toolkit  in non-hardware and/or real-time scenarios???
    please help me in this.
    Any suggestion, comments, feedback.....is absolutely highly appreciated
    thanks a lot in advance
    Labview Lover

    Hey,
    The Realtime Execution Trace Toolkit only works for NI RT Targets.
    But you can use the Desktop Execution Trace Toolkit, just search for it under ni.com.
    Christian

  • There is a feature on the Ad on using iPad with apple tv as a dual screen such as the iPad as agame controller, how is this being set up or done?

    There is a feature on the Ad on using iPad with apple tv as a dual screen such as the iPad as agame controller, how is this being set up or done?

    This is something the app developer enables within airplay mirroring.
    There is nothing you can do to enable that.
    If you are unsure how to enable mirroring
    http://support.apple.com/kb/HT5209?viewlocale=en_US&locale=en_US

  • I use a 2003 FW800 MDD desktop, with dual 1.25 GHz processors, and OS10.4.11, and with native Bluetooth card, won't recognize a newer Bluetooth Headphone set as an Input or Output device in System Preferences

    I use a Mac 2003 FW800 MDD desktop with dual 1.25 GHz processors, 2 GB memory, and a native Bluetooth card installed. I use OS10.4.11.  The FW800 was the only MDD that could use Bluetooth natively, as an optional installation.  I use the installed Bluetooth to run an Apple Aluminum Keyboard, and would like to use it with a new (2010) Samsung SBH-600 Bluetooth Headphone set, but, although the set will pair with the computer, and is recognized in both the System Profiler, and the Bluetooth section of System Preferences, it is not recognized in the Sound preferences section of System Preferences as either an Input or Output device.  Only the installed external Apple speakers are recognized.  I'd like to know if there is anything that can be done to make the Bluetooth system installed work with these headphones - either something that can be changed in the computer settings, or an added external Bluetooth device with different Bluetooth capabilities.

    It it may be that you are running either an outdated BT software or the firmware of the card is not up to date.
    What version is your BT software? Is it later than 1.5?
    http://support.apple.com/kb/DL1209
    Firmware:
    http://support.apple.com/kb/DL354
    Along with the firmware, it is likely that the headphones require a later BT revision than you are running. The headphones need rev.2.
    You may need to move to Leopard for support.
    http://support.apple.com/kb/DL889
    It also may be that headphone support is limited to iChat or the like in Tiger.....
    If you go to a USB BT dongle, D-Link often gets the nod as having native compatibility in OS X.

  • LSMW using IDoc Method *Error :No partner exists with the name '', type ''*

    Hi All,
    I am a newbie. I am trying LSMW using IDoc Method.
    I got an error when i executed Start IDoc Generation step: No partner exists with the name '', type ''
    Could anyone tell what wrong I might have done,
    Thank you,
    Shiv Ram

    Hi,
    You have to setup your IDoc configuration in LSMW:
    1) Enter the menu \Settings\IDoc Inbound Processing
    2) Create a FILE port by clicking "Maintain Ports"
    3) Create a logical system (LS) partner number by clicking "Maintain Partner Numbers"
    4) Be sure your partner profile that you create is "Active" by clicking "Classification"
    5) In the end click "Activate IDoc Inbound Processing" bottom.
    Run your LSMW again. This time it shoud run wothout any problem.
    Hope it helps.
    Chang

  • Can I use Muse with an existing website?*

    I have several existing websites. A couple have more than 40,000 files already. Can I use Muse with an existing website?

    Printing_Services wrote:
    Why exactly does Muse not support HTML import?
    Muse and HTML generators like it only deal with HTML at the very end of production... at export. These generators have their own system (not based on HTML) of arranging text & graphics and structuring page relationships.  These kinds of apps have never been able to import HTML. As the world moves to more dynamic web sites (database driven and server-side scripted), it becomes even more unlikely that an HTML generator will ever import HTML.

  • Adcfgclone.pl  with using existing context file

    Hi,
    I want to clone application server with using existing context file. can I do adcfgclone.pl with using existing context file?
    What is the syntax ?
    is there any issue to use this?
    thanks

    Actually I want to clone existing enviornment of R12.0.6 application to fix local inventory issue.
    Problem: During r12.1.3 upgrade I noticed that local inventory has issue. R12.1.3 upgrade was done succssfully after clone of production. When I started upgrade on production I noticed issue during 10.1.3.4 upgrade. Thats why I thought if I clone existing production enviornment on same server by using same context file then 10.1.3.4 upgrade will run.
    I know there is a way to fix inventory but I don't want to do to avaoid more issue. Please advice which path is good in such enviornment.Are you referring to global inventory? If yes, you can simply copy it from the source servers to the target ones.
    If the PATHs are different then please refer to:
    How to Create a Clean oraInventory in Release 12 [ID 834894.1]
    How to find the location of GLOBAL Inventory and LOCAL inventory on R12.x ? Why Some Times, There are Issues With The oraInventory Registration During The Post Clone ? [ID 878717.1]
    Thanks,
    Hussein

  • How to use phone with existing rogers plan

    If I bought a second hand iphone how do I use it with my existing Rogers cell phone plan?  I have one year left in the contract.

    You need to activate the iPhone with your Roger's line/number.
    If your existing phone includes a micro-SIM card and the second hand iPhone is an iPhone 4, you can insert that SIM card in the iPhone 4 followed by connecting the iPhone to iTunes to activate the iPhone with your line/number.
    If your existing phone includes a regular size SIM card and the second hand iPhone is a 3GS or 3G, you can insert that SIM card in the iPhone and do the same with iTunes.

Maybe you are looking for

  • Using iMessage on separate phones on one iTunes account

    I have 3 x iPhone 4 on one iTunes account - each being used by a different person.  Is it possible to use iMessage on these phones without them receiving each other's texts?

  • How to Binding the MainPage's variable in XAML

    public sealed partial class MainPage : Page public double StatusbarOpacity { get; set; }//Slider's value binding public MainPage() this.InitializeComponent(); <Slider Value="{Binding StatusbarOpacity}" Maximum="100" Background="DarkOrange" BorderBrus

  • COPA KE30 Summarrization Levels

    I have read up on Summarrization Levels and am considering using them. But my users require drilling down into COPA reports and creating report using characteristics as selection criteria. Will these issues affect my option to use Summarrization Leve

  • SQL Server Architecture

    Hi, Please provide any document or URL. Which contains Architecture differences/Enhancements  between SQL2005,2008,2008r2 and 2012?

  • Iphoto on Macbook OS X 10.6.8

    I recently formated my Mcbook at the Mac store and i lost most of my application inclouding Iphoto.... which model do i need to Install it again on my Mac as i have lost the CD  that comes with it... Hardware Overview:   Model Name:          MacBook