Issue with join condition while using in the corelated sub query

Bees,
I am not able to use the below query since i have used a join condition in the corelated sub qery inline view.But i have a requirement like this . Please help me on this
select * from dept d
where exists (select 1 from (
select deptno
from emp where deptno= d.deptno)
Thank you
Boooo

Hi,
I've never seen a general solution for how to reference columns from main query a from sub-query c, where c is is sub-query of b, which is a sub-query of a.
Whenever I've wanted to, I've been able to get the desired results with a different approach.
In this case, you seem to want
SELECT     *
FROM     dept     d
WHERE     EXISTS     (
          SELECT     1
          FROM     emp
          WHERE     deptno     = d.deptno
          );I'm guessing at your data and desired output.

Similar Messages

  • Issue with CSV export while using HTMLDB_ITEM.SELECT_LIST_FROM_LOV in SQL

    Hi,
    I have created a SQL report with HTMLDB_ITEM package. IN that report, I have generated a report column using SELECT_LIST_FROM_LOV, which can be used by the admin to update the column entry.
    Here is the link:-
    http://apex.oracle.com/pls/apex/f?p=50508:8:
    The update is working fine, The issue is, if you download this report as a CSV, it will export all the values of the select list for that particular column. Is there any way to restrict the export to the single value of that column( or the current value in the database). Please help/ suggest.
    thanks
    VG

    Brian,
    This example:
    http://htmldb.oracle.com/pls/otn/f?p=31517:176
    and this example:
    http://htmldb.oracle.com/pls/otn/f?p=31517:160
    may help you.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Is anyone else having issues with kernel_task spiking while using Firefox v27.0.1?

    During normal operations w/o Firefox running, kernel_task utilizes anywhere from .02% - 2.4%. When I run Firefox and begin browsing, the kernel_task frequently bursts up to 12% 56% and slows my entire system down.
    This just began happening today after months of use. No new extensions have been installed that were not previously there.
    OS: Mavericks 10.9.1
    I'm back to using Chrome. :|

    Hi TootsMagoon,
    Thank you for posting your question. When you watched the activity monitor did you take a sample of the kernel_task and see which processes were taking up the most resources? I would be happy to further investigate this a bug as well.
    Provided, if this is not helpful, if you want to leave feedback for Firefox developers, you can go to the Firefox ''Help'' menu and select ''Submit Feedback...'' or use [https://input.mozilla.org/feedback this link]. (You'll need to be on the latest version of Firefox to submit feedback). Your feedback gets collected at http://input.mozilla.org/, where a team of people read it and gather data about the most common issues.

  • I am having font issues with font book. It validates the font, yet it is not availabe in my software programs (Adobe  or Microsoft). What can I do to use these fonts?

    I am having font issues with font book. It validates the font, yet it is not availabe in my software programs (Adobe  or Microsoft). What can I do to use these fonts?
    I actually created these fonts with fontagrapher in 1998 and have been using them regularly ever since and now they are not available in InDesign. I really need to use them.

    I found a page on Adobe, Troubleshoot fonts | Mac OS X
    On PostScript type 1 fonts you need to copy/move the fonts to the correct font folder because Font Book doesn't copy them into the folder. Select the fonts double-click the fonts and Find in the font Book app and validate.
    The correct font folder depends how you are set up. I am by myself so my font folder was MyHarddrive/Library/Fonts. I was using Suitcas fusion and the fonts are located in a different folder.
    Most of the fonts have worked. Go to
    http://helpx.adobe.com/x-productkb/global/troubleshoot-fonts-mac-os-x.html
    This should help. Good Luck.

  • Problem with Progress DB while using to connect using JDBC Adapter

    Hi,
      I am facing Problem with Progress DB while using to connect using JDBC Adapter. I am getting the following error in auditlog file like,
    Error during database connection to the database URL  jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb 
    /devsche/i_apoext.db using the  JDBC driver "com.progress.sql.jdbc.JdbcProgressDriver" : com.sap.aii.adapter.jdbc.sql.DriverManagerException: Unable to locate a suitable JDBC driver to establish a connection to URL " jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb 
    /devsche/i_apoext.db "
    I tried using the following all URLs,
    1. jdbc:JdbcProgress:T:156.5.31.65:2545:i_apoext.       
    2. jdbc:JdbcProgress:T:156.5.31.65:2545:i_apoext.db     
    3.                                                      
    jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb 
    /devsche/i_apoext.                                      
    4.                                                      
    jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb 
    /devsche/i_apoext.db.                                  
    Can anyone please help me out in solving this issue.
    May be the cause for this is :
    1) The Wrong URL  format
    2) CLASSPATH is not setted properly..
    Can you look more into this stuff.
    Thanks,
    Soorya.

    Hi,
    To access any database fromm XI, using the JDBC adapter, the corresponding drivers have to be installed on the XI server.
    Just check this note 831162.
    Also, check this PDF to install Drivers in XI,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10

  • Issue with VO which is attached to the picklist

    Hi,
    Currently i have an issue with VO which is attached to the picklist
    if i try to attach the same VO (but query changed) to diff picklists , the picklists are overridden with last executed query (all the code is inside a loop)
    while(rs.next()) {
    String lookupDefn=rs.getString(2);
    if (lookupDefn!=null) {
    id="InputValue_Lookup"+count_lookup;
    OAMessageChoiceBean oamessage=(OAMessageChoiceBean)webBean.findIndexedChildRecursive(id);
    oamessage.setPickListCacheEnabled(false);
    if (oamessage!=null) {
    ElementInputValuesVOImpl oaviewobject = (ElementInputValuesVOImpl)am.findviewobject(ElementInputValuesVO1)
    if(!(oaviewobject ==null))
    oaviewobject.setWhereClause("lookup_type = '" + lookupDefn + "'");
    oaviewobject.executeQuery(); //Setting where clause Dynamically of Poplist VO
    // System.out.println("Query is"+);
    oamessage.setPrompt(rs.getString(1));
    oamessage.setListViewObject(pageContext, oaviewobject);
    oamessage.setListDisplayAttribute("Meaning");
    oamessage.setListValueAttribute("lookup_type");
    oamessage.setPickListCacheEnabled(false);
    any one please help :)

    Use different instances of the VO for each picklist.

  • I have an issue with pricing condition ZPRO (basic price )

    Hello gurus
    I have an issue with pricing condition ZPRO (basic price ).
    users created a sales order, and the basic price ZPRO which is mannual is added twice ,now i want to put a check so that condition tpye zpro is not accepted twice by the system. please let me know how can i restrict  system from accepting condition type zpro  twice during sales order.
    regds
    Edited by: sapuser09 on Jul 26, 2011 8:44 AM

    Hi,
    Solution for this is very simple. Don't make any changes to the sales order user exit. Use condition exclusion  for the condition type.
    Do customization in the following path of IMG
    Sales and distribution---- > Basic Functions--- > Pricing--
    > Condition exclusion -- > Condition exclusion for groups of conditions
    First  In Define condition exclusion groups you have to define condition exclusion group (ZXXX)
    Then  in Assign condition types to the exclusion groups you have to assign condition type to the exclusion group (ZXXX   ZPRO)
    Then in Maintain Condition exclusion for pricing procedures select the pricing procedure where you have the problem and click Exclusion box present in Dialog structure box
    You will be faced with Change view exclusion overview screen Click new entries
    You will be faced with New entries overview of added entries screen.
    Take serial no as 10 Condition exclusion procedure  as B (Best condition with in condition type) In the exclusion group1 add the exclusion group ZXXX.
    Save it and create order.
    In the order pricing you will again observe that ZPRO appearing twice but only one will be active.
    Changing user exit for this issue is not at all required and it must be only the last resort Try replicating the issue in your sand box system. As I had mentioned it will be picked twice but only one will be active.
    Hope this helps.
    Edited by: mokirala tilak on Aug 10, 2011 10:19 AM

  • Strange issue with rights of account, used by SSIS (Foreach Loop Container does not return file names without Admin rights on server)

    Hello everyone.
    Faced very strange issue with account, which is used to run SSIS package.
    The specific package uses Foreach Loop Container to retrieve file names within the specified folder, and put them into Import file task.
    The package is set up to run under specific service account. This service account is given all permissions (Full control) to the folder where source files reside.
    So the issue is: SSIS package fails to execute this task (Foreach Loop Container and then Import), and shows that no files are found in the directory (although files ARE there).
    Once we're adding the service account into local Administrators group on the SQL Server, it works! Removing - does not work again. We cannot leave the service account as SQL server's admin as it's prohibited by our IT policies, and is just a bad practice.
    Any ideas, please? 
    MCP

    Here's the real log output:
    Date 16.04.2014 12:47:09
    Log Job History (RU-BW: Update)
    Step ID 1
    Server Server
    Job Name RU-BW: Update
    Step Name bw_import_cust_master_data
    Duration 00:00:02
    Sql Severity 0
    Sql Message ID 0
    Operator Emailed
    Operator Net sent
    Operator Paged
    Retries Attempted 0
    Message
    Executed as user: service_account Microsoft (R) SQL Server Execute Package Utility  Version 10.50.4286.0 for 64-bit  Copyright (C) Microsoft Corporation 2010. All rights reserved.    Started:  12:47:09  Error: 2014-04-16 12:47:11.45
        Code: 0xC0202070     Source: bw_import_cust_master_data Connection manager "Input"     Description: The file name property is not valid. The file name is a device or contains invalid characters.  End Error  Error:
    2014-04-16 12:47:11.47     Code: 0xC0202070     Source: bw_import_cust_master_data Connection manager "Input"     Description: The file name property is not valid. The file name is a device or contains invalid characters.  End
    Error  Error: 2014-04-16 12:47:11.48     Code: 0xC0202070     Source: bw_import_cust_master_data Connection manager "Input"     Description: The file name property is not valid. The file name is a device or contains invalid
    characters.  End Error  Error: 2014-04-16 12:47:11.48     Code: 0xC020207E     Source: Import file Flat File Source [1]     Description: The file name is not valid. The file name is a device or contains invalid characters.
     End Error  Error: 2014-04-16 12:47:11.48     Code: 0xC004701A     Source: Import file SSIS.Pipeline     Description: component "Flat File Source" (1) failed the pre-execute phase and returned error code 0xC020207E.
     End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  12:47:09  Finished: 12:47:11  Elapsed:  2.324 seconds.  The package execution failed.  The step failed.
    MCP

  • Problem with two monitors while using Photoshop, windows move from 2nd screen to 1st screen.

    Problem with two monitors while using Photoshop, windows move from 2nd screen to 1st screen.
    I saved a new workspace and it did not help.
    No problem before I went to Maverick.

    I found the fix, go to System Preferences and open Mission Control and uncheck the box to keep monitors as they were (When switching to an application...........)

  • Crash issues with elements organizer while running Apple OS 10.9 Mavericks

    Crash issues with elements organizer while running Apple OS 10.9 Mavericks.  Crashes then ask if you want to reopen or not.  Also when you are trying to manuver the page with your mouse things go crazy from a full page edit back to viewing all photos on the site and skipping around from picture to picture.  Unsusable as it is today!

    It is very critical to delete all preferences when you do a major OS X upgrade. You need to go to your username>library>preferences and delete everything pertaining to PSE. To see that library in 10.9, open a finder window, click your user account in the list on the left (the little house with your name), and then click the gear wheel at the top of the window and choose View Options. At the bottom of the list of checkboxes you'll see Library. Turn it on and then you can easily find the preferences folder.

  • Having issues with my MacBook. Even when the internet is disconnected, apps are still closing and opening on their own. I sometimes do not have control over my cursor.....any suggestions?

    Having issues with my MacBook. Even when the internet is disconnected, apps are still closing and opening on their own. I sometimes do not have control over my cursor.....any suggestions?

    There are several possible causes for this issue. Please take each of the following steps that you haven't already tried until it's resolved. Some may not be apply in your case.
    1. Follow the instructions in this support article, and also this one, if applicable. A damaged or defective AC adapter could be the cause, even if it's the right kind.
    2. Open the Bluetooth preference pane in System Preferences and delete all pointing devices other than the trackpad, if applicable. Disconnect any USB pointing devices. By a "pointing device," I mean a peripheral that moves the cursor, such as a trackpad, mouse, trackball, or graphics tablet. A plain keyboard is not a pointing device.
    3. Start up in safe mode and test, preferably without launching any third-party applications. If you don't have the problem in safe mode, but it comes back when you restart as usual, stop here and post your results. Do the same if you can't start in safe mode. If there was no difference in safe mode, go on to the next step.
    4. Reset the System Management Controller.
    5. If you're using a Bluetooth trackpad, investigate potential sources of interference, including USB 3 devices.
    6. A swollen battery in a portable computer can impinge on the trackpad from below and cause erratic behavior. If you have trouble clicking the trackpad, this is likely the reason. The battery must be replaced without delay.
    7. Press down all four corners of the trackpad at once and release. If there's any effect, it's likely to be temporary, and the unit needs to be serviced or replaced.
    8. There's a report that a (possibly defective) Thunderbolt Ethernet adapter can cause the built-in trackpad of a MacBook to  behave erratically. If you're using such an adapter, disconnect it and test.
    9. There's also a report of erratic cursor movements caused by an external display that was connected but not turned on.
    10. If none of the above applies, or if you have another reason to think that your computer is being remotely controlled, remove it from the network by turning off Wi-Fi (or your Wi-Fi access point), disconnecting from a Bluetooth network link, and unplugging the Ethernet cable or USB modem, whichever is applicable. If the cursor movements stop at once, you should suspect an intrusion.
    11. Make a "Genius" appointment at an Apple Store to have the machine and/or external trackpad tested.

  • Issues with sending mail when using 2 email accounts - possible bug?

    Hi all,
    Having issues with trying to send email from the 3g iPhone. I have 2 IMAP acounts set up on the phone, one
    which works fine but when I try to create mail from the primary account as soon as I hit send it exits the mail program and goes back to the home screen.
    Both IMAP accounts have identical settings apart from the username and email address. On the primary account there is no sent messages folder on the iPhone whilst there is on the account that works. I've had a look in the advanced settings and it is programmed to store sent messages in the local sent folder which doesn't exist. I've tried selecting it to store in a IMAP folder as I thought maybe it was crashing as the local folder wasn't there but it has the same result.
    Have deleted the account and entered the settings back in again to try to coax it to create the local sent folder but cake up with the same problem.
    Suggestions are welcome.

    You have their SMTP servers mixed up, go to Mail>Preferences>Accounts>Outgoing Mail Server (SMTP), click on the server then choose Edit SMTP Servers and select the correct one for each account. Then check the Use Only This Server box

  • I have some issue with my bluetooth im using an iphone 5 its just keep on searching bluetooth devices it cannot detect other bluetooth device, any solutions to my problem?

    I have some issue with my bluetooth im using an iphone 5 its just keep on searching bluetooth devices it cannot detect other bluetooth device, any solutions to my problem?

    Hi miffyzoo,
    If you are having bluetooth pairing issues with your iPhone and your Mac, you may find the troubleshooting steps outlined in the following article helpful:
    iOS: Troubleshooting Bluetooth connections
    http://support.apple.com/kb/TS4562
    Regards,
    - Brenden

  • HT4623 Is anyone else having issues with scaling down photos to fit the screen for home and lock screens with ios7??

    Is anyone else having issues with scaling down photos to fit the screen for home and lock screens with ios7??  Installed ios7 this morning. Tried to use one of my photos from camera roll as background for lock screen and I can't scale the photo to fit the screen.  Never had a problem before and now when I pinch the photo to get it to the right size of the screen, it won't stay that way. The photo is enlarged way beyond the screen size so it doesn't look right. Does anyone know how to fix this?

    Hello, cliffiapp4.  
    Thank you for visiting Apple Support Communities.  
    Here are the steps that I would recommend going through when experiencing this issue.  
    Resolution
    If a single application is not responding or stops responding when it opens, you can force it to close.
    If the device is unresponsive or if certain controls aren't working as expected, restart your device.
    If the device remains unresponsive or does not turn on (or power on), reset your device.
    If the above steps do not resolve the issue, contact Apple.
    iOS: Not responding
    http://support.apple.com/kb/TS3281
    Cheers, 
    Jason H.  

  • Hello, Im new to this website. Im having issues with my Macbook. I have the old 2009 model Macbook and it is our schools macbook. The school just upgraded these MacBooks to OSX Mavericks and when i try to open Minecraft it won't let me. It says no jd

    Hello, Im new to this website. Im having issues with my Macbook. I have the old 2009 model Macbook and it is our schools macbook. The school just upgraded these MacBooks to OSX Mavericks and when i try to open Minecraft it won't let me. It says no jdk installed. I also try to install Java SE runtime but half way through the Software Update it says cant download software because of network problem but I'm connected to the internet and i can browse stuff just fine. Can any one help with my problems. P.S. I don't know the administrator password or stuff like that. And yes we are allowed to play games and stuff on these laptops but only at home not at school so don't tell me i need to focus on school and not games. 

    Since you updated the operating system, it is probably Minecraft is missing certain files that ware remove or are not longer comparable with the new version of the OSX. what I recommend, is to check is there is an update for Minecraft and install that. If there is not update available, probably the best thing will be reinstalling Minecraft. Hope this will help you.   

Maybe you are looking for

  • Problem with Business Partner List - State

    I'm using SAP B1 2007A. We recently added several International countries and their regions (states). We are having a problem with the state that appears on the Business Partner List (list that appears when you search using part of a company name or

  • Daisy Chain a Motu 896HD and a FirePod, can't get it to work??

    I'm trying to Daisy Chain a Motu 896HD and a FirePod, but don't know how to get them to work together. Logic Pro can see them seperately, but I can't get it to recognize them at the same time to use 16 audio input channels. Can anyone tell me how thi

  • Trouble with buttons on a call

    Whenever I am on a call, I hold my phone close to my ear and face, and it happens to accidentally hit one of the 6 keys on the screen (like mute, keypad, contacts, etc.) So while I am on a call, I either get muted so the person can't hear me, or I en

  • Acrobat 9 & Reader 9

    I have adobe acrobat 9 pro installed. i have a program that needs adobe reader 9 to auto view some files. Can I install both acrobat and reader on my PC? I seem to remember a few years ago having some issue with acrobat and reader. HHJG

  • Passing Search Parameter to SRM-MDM Through the URL

    Greeting all, I would like to know how I can pass a search parameter to SRM-MDM using the URL in the web browser. This is needed to display the result directly instead of listing the whole catalog contents. I am trying to pass a search parameter (Tex