Not Exists works not

I'm trying to get a list of menu choice for a responsibility.

If I run the following without the Not exists sql code I get the results below showing the entrance, under providers, banks, etc.. Entry is excluded from this responsibility and are not the case of the banks.

Select r.RESPONSIBILITY_ID away r.responsibility_name, menu1, sub1, prompt1 fme1.prompt fme1.sub_menu_id fme1.menu_id,.
Sub2 menu2, fme2.sub_menu_id FME2.menu_id, fme2.prompt orders2, fme2.function_id fun2
of fnd_responsibility_vl r, fnd_menu_entries_vl fme1, fnd_menu_entries_vl wwf2
where are.menu_id = fme1.menu_id
and r.responsibility_name = "ASPT to THE AP Manager"
and fme1. SUB_MENU_ID = fme2.menu_id
and fme1.prompt is not null
and fme2.prompt is not null


RES_ID RES NAME Menu1, Menu2 Sub1 Sub2 prompt prompt function2

50281 ASPT to THE AP Manager 68030 68015 suppliers 68015 68238 entry 1348
68015 68015 68238 ASPT 50281 to THE AP providers consultation Manager 68030 2252
50281 ASPT to THE AP Manager 68030 68015 suppliers 68015 provider merge 1055
50281 ASPT to THE AP Manager 68030 68015 68015 68196 suppliers banks 1066
50281 ASPT to THE AP Manager 68030 68015 suppliers 68015 77218 others


But when I run with the

and NOT Exists (select action_id fnd_resp_Functions
where responsibility_id = r.responsibility_id
and fme2.function_id = action_id or fme2.menu_id = action_id or fme2.sub_menu_id = action_id)

The entry does not appear, this is correct, but banks does not appear and should be:

68015 68015 68238 ASPT 50281 to THE AP providers consultation Manager 68030 2252
50281 ASPT to THE AP Manager 68030 68015 suppliers 68015 provider merge 1055
50281 ASPT to THE AP Manager 68030 68015 suppliers 68015 77218 others

The following query shows that there is no exclusion of the banks menu or functions:

Select count (*) in fnd_resp_functions
where responsibility_id = 50281
and action_id in (68030,68015,1066,68196)

Count = 0

You might have a problem with the parenthesis.

Try like this:

...
and NOT Exists(select null from fnd_resp_Functions
               where responsibility_id = r.responsibility_id
               and (fme2.function_id=action_id or fme2.menu_id = action_id or fme2.sub_menu_id = action_id))

or

...
and NOT Exists(select null from fnd_resp_Functions
               where responsibility_id = r.responsibility_id
               and action_id in (fme2.function_id, fme2.menu_id, fme2.sub_menu_id))

Explanation: the AND operator has a higher precedence than the OR operator. So you must always set the parentheses () when you mix AND and OR conditions. Just to be on the safe side.

Published by: Sven w. on October 21, 2008 16:50

Tags: Database

Similar Questions

  • Trace from the existing work

    I'm working on a script for my company that is developing models for internal use.  I was able to get most effective pathItems basic drawing

    and executives of texts. The problem that I face now is to add the logo of our company. In the script reference, I found examples of duplication of art of a document to another, but not what I need here.

    I approached this trying to choose our company logo, in an existing document and somehow capturing the pathPoints so I can use them in the script that sets up the models. However, I did have a lot of luck with that. Ideally everything will be autonomous in a script, so that the external files are not mandatory.  Thoughts?

    Welcome to the forum.

    Isaac McDaniel wrote:

    ... in a way to capture the pathPoints so I can use them in the script... Ideally everything will be autonomous in a script, so that the external files are not mandatory.  Thoughts?

    Take a look at the link for the script in #3 post (this is the last message at the bottom of the page (not the one that is marked correct)) of this thread:

    http://forums.Adobe.com/thread/1307731?TSTART=0

    Let us know if it helps your efforts and it was useful for you.

  • To create a startup disk Raid1 on an existing work XPS420 VISTA system

    Hi all

    I have a XPS 420 with a 500 GB Samsung drive. It starts on Vista without any problems. The Bios Raid feature is 'autodetect '.

    I bought a second 500 GB exactly same Samsung. Two hard drives are visible on the bios, the utility rom Intel Matrix and Vista.

    I want to create a Raid1 on this two-disc without losing the work of Vista. I read in the manual of Dell that I can use the option of the console Application migration Intel Matrix on Vista. Migration is not available on the version of the Rom and I suppose the create function to erase all my data (maybe I'm wrong?). Unfortunetly, I don't have the Matrix Console on my Vista (maybe I have clear months where I didn't use the Raid features... featured my error).

    Now, if I want to install the Console of the matrix (downloaded from the Dell support site) but I received an error message during installation "your computer does not meet the minimum requirements" and stops the installation. I updated the Intel and Intel Chipset driver utility with the who that is on the site of Dell Dowload.

    I guess I need to enable the Raid in the Bios. But if I do that, I can not start Vista more. It starts booting but I got at a very early stage (a few seconds after the patient left straight line movement) a blue screen flashing (I can't read the error). Replace the Bios in "autodetect" mode make my Vista boot normally.

    I hope to be allowed and, despite the fact that I search on this community forum, has not found this that I encoutered currently that could be summed up:

    1. how to create a Raid1 on an existing boot Vista without losing any existing data?

    2. how to install the Intel Matrix Console on a system without it?

    Thanks for your help.


  • I can't connect my windows 8 PC to an existing working group including XP and Vista devices

    I tried a number of things - using the homegroup in windows 8, defining the windows 8 PC the existing workgroup name, change a XP Workgroup device name for the residential group 8 windows and always without success.

    You must go to the network control panel > choose homegroup and sharing options, then click on "change the advanced sharing settings...". "It should show that the private sector is the current profile.  The value "Turn on network discovery" and 'Turn on file and printer sharing' and 'use the accounts users and passwords... ". »

  • Open the second image on open existing work plan

    I have a plan to work with a text image and I need to place a second image beside him on the same level of work that is registered somewhere else.

    How can I add/open/download this second image to make a.

    I'm using adobe illustrator CS4 on mac OS X.

    Thank you!

    File > place

  • How to choose a plan of work behind another plan of work? ALT-click work does not (PC)

    I'm going through course Illustrator CC Deke McClelland and a video on the creation and copy of work plans, he uses the tool of the artboard to create a large body of work on top of existing work plans and then shows how to select work plans below by alt-clicking (opt-clicking on Mac) with the work plan on the tool you want to select.

    I tried this exactly like in the video, and although my pointer in the same spinner of Demont, it does not select the below work plans. What happens if it's that if I move my mouse pointer so that a smart guide appears, then alt-click, a new workplan is created. I also note that if I alt-click and drag, a new workplan is created.

    So what is really going on here? Are you supposed to be able to select under other work plans, work plans by alt-click with the tool of work plan? Of course, it works for Deke in the video, but not for me. And why smart alt-click on a guide work plan tool creates a new work plan, while nowhere else alt-click is not?

    I must say that I find it very difficult to determine the intended behavior in many areas of the Illustrator. This is the second course of Lynda.com Illustrator CC I take, especially because I am frustrated at the first course (Justin Seely) of things doesn't work don't not on my copy, as they work in the video. It seems to me therefore azz-back and illogical, and I don't know how it is bugs.

    As a side note, if I alt-click on the button x on a work plan, I get a dialog box saying "the operation cannot complete because of an unknown error. [PARM] "- a bug?

    to select arboards hidden behind other plans of work or not, with the selected work plan tool, move your mouse over the label of Arboard (IE '01 graphic Board 1'), when the pointer turns into a white arrow, click it.

  • HP Pavilion Notebook PC g7: MS Works9 does not recognize a word downloaded document.

    After upgrading 8.1 victories to win 10, I found that the MS Works 9 program was not to recognize the word files that I downloaded from email.   When I open the file, I get a message that explains how should I buy a Microsoft Office program.  I deleted the existing Works 9 program and reloaded the program from the disc supplied with the program.  My computer continues to ignores the fact that Works 9 is available and directs me to the purchase of MS Office.  I don't have this problem when the computer was running on 8.1 WINS

    Otherwise, the program of Works9 works perfectely with 10 wins.   Any help would be much appreciated.  Bill

    Hi Worahm,

    I think that your question is about the default application that opens your file type. I recommend you change the program that will open your file Works 9. See the Windows here support page to learn more about changing the default value. If Works 9 does not appear in the list of programs of your choice, go to the Choose default program, and then find the file on your C: drive.

    Please let me know if it works. It seems that when you upgraded, some default values have been lost.

  • Some clients get assigned to WRT300N, while others do not have a default gateway

    Two existing working posts, existing wireless phone and other wireless cable connects to the internet very well.

    Try adding cell phones work, they aquire signal wireless, gets the assigned DHCP IP address but can't connect. Looked at the output of ipconfig and shows no gateway by default - IP of the router is 192.168.1.1 - with everything by default, I did a reset on it.

    The existing machines have all default gateway assigned. Only difference I see is working machines are XP pro. Never had a problem with laptops work connect anywhere else.

    Any ideas on how to install in order to work laptops can connect?

    namralk wrote:

    Ethernet VMware Network adapter adapt VMnet8:

    The connection-specific DNS suffix. :

    ... Description: VMware Virtual Ethernet adapt for VMnet8

    Physical address.... : 00-50-56-C0-00-08

    DHCP active...: No.

    ... The IP address: 192.168.1.1

    ... Subnet mask: 255.255.255.0.

    ... Default gateway. :

    You've configured vmware on your computer to use 192.168.1.1 on the adapter VMnet8. This means that the computer uses 192.168.1.1 itself on this card and obviously will not be resolved 192.168.1.1 as default on your wireless adapter gateway 192.168.1.1 is the computer itself.

    Correct your network configuration in vmware. After that a "ipconfig / renew *" or a reboot must get a new lease of work, including the default gateway. Make sure that vmware does not use the 192.168.1.0/255.255.255.0 subnet for network cards.

  • U2717D HDMI signal not detected

    My U2717D is less than 1 week old. I plugged it with my early 2012 MacBook Pro 15 via display port using the cable supplied with the monitor. It works admirably or not the monitor input Source is set to manual or Auto select.

    Then I tried to connect my other laptops using HDMI. The cable is a HDMI cable that I connect laptops to my TV to existing work. Laptops are HP Pavilion X 2 13 (win 10 with all latest updates) and Asus S200E (Win 8.1). I also tried my MBP with a CDM-> HDMI adapter. All 3 laptops did not detect the monitor when the source is in Auto Select, monitor says HDMI no signal. All 3 laptops did not detect the monitor turned off the automatic selection and manually selected the HDMI input. DisplayPort cable has also been disconnected for the test, it made no difference. I also have a working device Google ChromeCast 2 that I plugged directly on the U2717D HDMI port. In all cases, the monitor reported no signal HDMI cable, or computers that are detectable by the monitor.

    Finally, I got the job of HP. I remember, I had to unplug all cables including the power of U2717D. Turn on U2717D, turn on the laptop, then plug an HDMI cable. A sigh of relief, I plugged the MBP to DP cable and it seems to work. The next day, I tried the Asus. Again, no signal on HDMI, no monitor detected. I unplugged DP, HDMI, pedaled power the monitor, select Manuel HDMI then connect the Asus and it finally worked.

    I have a Dell XPS13 arriving at which I intend to move the monitor between XPS 13 on HDMI and DisplayPort on the MBP (via USB to HDMI adapter type-C). However, it is unacceptable if I need power cycle and unplug the cables every time! Is a kind of 'feature' question or undocumented? Or is my defective U2717D HDMI port and I need to arrange for an Exchange?

    Before we get it exchanged, contact Dell Technical Support and ask them to send you our HDMI to HDMI Cable, part T516N. See if it fits best.

  • Still can not update Windows 8.1 because I can't connect to my Microsoft account online.

    OK, excuse me if I'm a little ROUGH, because there is a persistent problem since BEFORE the 8.1 update.

    I can not connect to the Windows store at all.

    Whenever I click on Store Windows, it says

    "We could not connect to the Bank. This could have happened due to a server problem or network connection has expired. Please wait a few minutes and try again. »

    No amount of clicking "don't retry" does nothing.

    Associates, if I click on "connect to a Microsoft account" and click on "Switch to a Microsoft account" I enter my local password, enter my e-mail address, click on 'next', it goes to a screen that says "sorry, we could not connect to the Microsoft services right now. If the problem persists, look for 'referee '.

    OK, so here's the deal.  I DON'T HAVE ANY F * CKING REFEREE.  I WENT TO EVERY F * CKING HELP PAGE FROM MICROSOFT TO FIX THIS PROBLEM WITHOUT SUCCESS. I TRIED ALL OF THE SUGGESTIONS I FOUND FROM 3RD PARTY SITES.

    Also, I have a laptop that I use on the same home LAN that is not one of these problems and connects very well with the store and my Microsoft Account.

    This problem is started, after a regular update Tuesday Microsoft got.  The only SOLUTION seems to be to refresh my OS, which will eliminate software installations that will take me several DAYS to re - install.

    Note that, with the exception of problems with connection to the store and my Microsoft Account (and update to Windows 8.1) the computer works fine. So I really want to rub the complete set of software I installed in the area by a refresh.

    As near as I can tell there is something very SIMPLE that I have F * CKED UP in the OS that prevents access to the store and my Microsoft Account.  There should be a SIMPLE FIX for THIS. But I have not yet found. I asked BEFORE on the community forums and got NO SATISFACTORY RESPONSE.

    What you say Microsoft? Is your only solution destroy my existing work of the software game and spend several days recreate?

    When I bought Windows 8, I downloaded an ISO. I think you can still get an ISO from Microsoft if you ask him nicely.

    I am lucky to have a Windows 8 DVD, so I have no problem, but try this solution to get the ISO standard

    http://www.CNET.com/how-to/how-to-download-the-official-Microsoft-Windows-8-1-ISO/

  • A definitive guide is for Dreamweaver CC 2014.1.1? Tutorials I see have not the same options of window, etc.. Help?

    I revise my existing work site, (custom labels of wine, initially created in Dreamweaver CS3 I think!) to be liquid and the mobile environment. I'm stubborn in this way, a layman. On some pages I have tables with a picture of the above sample label and a text below caption. I'm running in the alignment problems. But especially as a guide (for Dummies?, for my learning curve) that accurately reflects this 2014.1.1 version? (Whether a physical book or online guide). I think when I'm in the creative cloud (for easy mobile it only recently) perhaps it wasn't the version first, strawberry, I've read this. The thoughts of anyone who may be useful before I'm-God forbid - abandon and search engines can't find my site, as told me?

    The Adobe Dreamweaver learn by video by David Powers is excellent as well as Dreamweaver classroom in a book. Both are available in a physical format or as a download.

    http://www.adobepress.com/Store/Browse.asp?St=67380

    Another good place to go is www.lynda.com... one of the best resources out there for not only Dreamweaver, but a lot of other topics.

    These resources will teach you everything you'll ever need to know and in a very friendly way.

  • Subquery should throw error (or not!)

    Hi all

    Here's my problem:

    This query
    select 'Y' from dual where exists (select to_char(to_date('2001-01-01','YYYY-MM-DD'),'DDD') from dual);
    return Y
    select 'Y' from dual where exists (select to_char(to_date('2001-45-01','YYYY-MM-DD'),'DDD') from dual);
    return o even if the subquery
     select to_char(to_date('2001-45-01','YYYY-MM-DD'),'DDD') from dual; 
    has failed with an ora-01843.

    Don't know if this is normal or not?

    Thanks in advance.

    Franck.

    Client Oracle: SQL * more: Production release 11.2.0.3.0 on my Jun 3 10:33:07 2013
    Oracle database: Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production

    Oracle is smarter than you think... ;)

    Look at the filter condition, in terms of the explain to your second query command...

    SQL> select *
      2  from table(dbms_xplan.display);
    
    PLAN_TABLE_OUTPUT
    ---------------------------------------------------------------------------
    Plan hash value: 1685426719
    
    -----------------------------------------------------------------
    | Id  | Operation        | Name | Rows  | Cost (%CPU)| Time     |
    -----------------------------------------------------------------
    |   0 | SELECT STATEMENT |      |     1 |     4   (0)| 00:00:01 |
    |*  1 |  FILTER          |      |       |            |          |
    |   2 |   FAST DUAL      |      |     1 |     2   (0)| 00:00:01 |
    |   3 |   FAST DUAL      |      |     1 |     2   (0)| 00:00:01 |
    -----------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       1 - filter( EXISTS (SELECT 0 FROM "SYS"."DUAL" "DUAL"))
    
    15 rows selected.
    

    Published by: JAC on June 3, 2013 14:20
    IMO, it's okay... That's how EXISTS works. It is supposed to only verify the existence...

  • Add the domain to existing emails

    Im trying to add an existing work email Thunderbird and I continue to be 'impossible to find the settings for your email. It is not a place to put the domain name, I need to synchronize the email from my iphone, I noticed. Is it my problem or where I can put the necessary domain name?

    No Thunderbird does not support active sync...

    Now you can answer the question. So, we can switch to a resolution. What is an exchange server? If this isn't what email provider?

  • How to remove a computer from my working group under XP and Windows 7?

    We have recently implemented a network composed of our three computers (2 XP) Home Office and 1 Windows 7 to share files and printers.

    However, we found its malfunction and could not share what we expect.  One of the reasons, we can see it, could be one of the computers have been infected.

    So, we try to remove this computer from the working group.

    However, no matter how hard I searched on Internet, there is no way to remove the infected computer's existing working group.

    There that experts can help us?

    Thank you very much!

    Hello

    You cannot remove a computer from a working group, but you can change the name of the working group.

    http://support.Microsoft.com/kb/295017

    http://www.SevenForums.com/tutorials/51711-workgroup-name-view-change.html

    But that will not necessarily mean that they are not accessible by other computers on the network, or it will necessarily make the other less likely to be infected through this PC computers.

    The only way to "withdrawal" of a computer on a network is to unplug the network cable or remove the name of the wireless network.

    If you are concerned about a possible infection, you must get the malware to day and scan for malware protection.

    However, I suspect it's more likley your problems are caused by the lack of knowledge in the topic network different Windows operating system. This can help...

    http://Windows.Microsoft.com/en-us/Windows7/networking-home-computers-running-different-versions-of-Windows

    If you are having specific problems post back with details and someone will almost certainly try to help.

    Tricky

  • Best way to allow the new 64 bit Vista Home Premiun PC to work with the software and virtual private networks more elders with unsigned drivers?

    I just bought a new HP PC with Intel E5300 without experiencing compatibility issues with several current VPN as well as blocking drivers not signed properly.  I heard of the Virtual PC as well as the ability to install Vista 32.  What is the simplest, lowest cost way to make this existing work of PC with VPN and unsigned drivers as soon as POSSIBLE with performance at least equivalent to a Pentium 4 2 GHz with 2 GB of RAM?

    http://support.Microsoft.com/default.aspx/KB/946765

    Read the above info on drivers.

    The driver signing Unsigned drivers can be used with 32-bit versions of Windows Vista. 64 bit versions of Windows Vista require that all device drivers be digitally signed by the developer.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    ·                         http://www.Microsoft.com/downloads/details.aspx?FamilyId=04D26402-3199-48A3-AFA2-2DC0B40A73B6&displaylang=en

    Virtual PC 2007

    Download the full version of Microsoft Virtual PC 2007.

    Buy and install a Windows operating system earlier (XP, Windows 2000) in the above Virtual Machine and try to run your program in that.
    Vista Home Premium is not supported by Microsoft using Virtual PC above, but Virtual PC will work in it.

    See you soon. Mick Murphy - Microsoft partner

Maybe you are looking for

  • Old tabs open when I start firefox

    HelloWhen I run Firefox, it opens all my tabs I had open until I closed my last session. I went through one of the help pages already telling me to go to the options-general tab-"When Firefox starts" and changed to 'home page', but I still have the s

  • HP Envy 700-210 memory type

    I just bought a HP Envy 700-210 and it comes with a sing 8 GB of RAM, but it is listed as PC3L.  I have a memory from my old computer, but it is PC3 memory instead.  The memory of higher voltage will work with the motherboard?  I have 2 x 4 GB PC3 an

  • The range presets & comparison of low numbers

    I am creating a control function that changes the scale whenever the button goes from high to low index or index from the bottom up. It works well, except when the number is in the range of 0.001 a.01 then it sticks. It would seem that the comparison

  • My computer is no longer completely after automatic update starts...

    My computer is more fully boots after automatic update... message is as follows taken windows... for options and advanced boot troubleshooting for windows, press f8 it will not do anything! Help

  • Landscape mode and portrait mode

    I'm trying to get my computer left portrait mode.  I have no idea how he went from landscape to portrait on my computer screen but I can not understand how to get it back.  I have windows vista and searched everything.  If anyone can help, I'd apprec