Need help request not having

-QUERY1
SELECT DISTINCT A.EMP_ID
OF EMP_ADDRESS A, USSX B, USERTVS C, D, UAS SDE E
WHERE A.EMPC_ID = B.EMPC_ID
AND C.SS_ID = B.SS_ID
AND C.SS_ID = D.SS_ID
AND D.SS_ID = B.SS_ID;

HAVE A TABLE MORE

-REQUEST 2
Select C.EMP_ID from uaddressbs A, USSX B, EMP_ADDRESS C
WHERE a.SS_ID = b.SS_ID =
AND b.EMPC_ID c.EMPC_ID

I JOINED the above QUERY to EXCLUDE THE VALUES RETURNING from THE query2 in query 1, but his does not work

SELECT DISTINCT A.EMP_ID
OF EMP_ADDRESS A, USSX B, USERTVS C, SDE D
WHERE A.EMPC_ID = B.EMPC_ID
AND C.SS_ID = B.SS_ID
AND C.SS_ID = D.SS_ID
AND D.SS_ID = B.SS_ID;
and A.EMP_ID not in (select C.EMP_ID from uaddressbs A, USSX B, EMP_ADDRESS C
WHERE the a.SS_ID = b.SS_ID = AND b.EMPC_ID c.EMPC_ID)

Published by: [email protected] on May 27, 2009 10:21

Please run the example INTERSECT, I have given and after the release.

Please put {noformat}

{noformat} before and after any code you're posting -- it makes it easier to read.

Please show query +and the output+ of the query that you are running:

WITH table1 AS)
SELECT emp_id 123 OF DOUBLE UNION ALL
SELECT 456 DOUBLE UNION ALL
SELECT DOUBLE 890),
Table2 AS)
SELECT emp_id 456 OF DOUBLE UNION ALL
SELECT DOUBLE 890)
-end of test data
SELECT *.
FROM table1
WHERE emp_id NOT IN ((in English only)
SELECT emp_id
FROM table2);

EMP_ID
----------
123

SELECT *.
FROM table1
WHERE DOES NOT EXIST)
SELECT 1
FROM table2
WHERE table1.emp_id = table2.emp_id);

EMP_ID
----------
123

As you can see, only EMP_ID 123 was returned with both queries, so I don't see how you're getting the incorrect results.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

Tags: Database

Similar Questions

  • I NEED HELP Please im having a problem to forget my password and when I plug it it says its locked with a password he try to put the itunes thing but

    NEED HELP Please im having a problem to forget my password and when I plug it it says its locked with a password he tried to put the itunes thing but it says enter password I put in what I rember, then said lokced for five minutes help me pls

    Without knowing the password for your iPhone, there is no way to unlock it, bring even you to the Genius Bar. If you continue to enter the wrong password, you will be locked out of your iPhone, and your data will be unaccessable.

  • need help, can not attach the image file to my yahoo mail.

    need help, trying to compose e-mail... can not attach the image file to my yahoo mail... using firefox. Vista starter edition

    using 3 G hsdpa usb modem, model huawei E156G

    download stats is 0.00 KB its not not download, http://img337.imageshack.us/img337/2547/3ginterface.jpg

    the strange thing is that if I only download small file/pic as 50 KB download data passes through, but as 1 MB image file or more it will not pass and remained at 0.00 kb

    I tried to run administrator (always on the standard user account)---> cmd---> ipconfig/flushdns, still the same problem.

    Hi korgmeister,

    1 when was the last time it was working fine?

    2. do you have security software installed on the computer?

    3. are you able to access all Web sites?

    First of all, I suggest that you try to download the file with Windows internet explore.

    If you are able to download using Windows internet explore, then there may be a problem with the Firefox browser.

    Uninstall and reinstall Firefox browser and check.

    If you are facing a similar issue when you use Internet explore, then it may be Internet problem try to download some other file or document check if it works.

    Also contact your internet service provider to check if the connection side there is fine.

    Go back with the results!

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit ourMicrosoft answers feedback Forum and let us know what you think.

  • need help wifi not connecting

    I have and acer aspire E1 - 531 with atheros AR5B125, my computer wireless adapter whenever I connect wifi says limited access and preventing me from accessing internet. I tried to restart the network card, but he did nothing. I checked Device Manager and as my adapter teredo tunnel Microsoft generally has 10 code, all my drivers say it is fully updated, also idk if it is connected but have avast antivirus it says my firewall is disabled and it wont not put me on, can someone please help

    Hello

    Thanks for posting your question on the Forum of the Microsoft community.

    I would be grateful if you can provide us with the following information to help us better understand the issue.

    1. Did you do last changes made on your computer before this problem?
    2. You are able to connect to the internet with the cable connected to the modem?

    A Code 10 error is generated in the Device Manager in one of the following situations:

    • Device Manager cannot start the device.
    • One of the pilots who needs the unit does not start.

    The Device Manager has insufficient information to recognize the error that spread upwards by the device driver.

    Note: In this case, the error Code 10 can be a very generic message indicating some sort of unspecified driver or device problem.

    If it helps, try the methods and see them below.

    Method 1

    Step 1

    Try to run in the troubleshooter to build designated as network troubleshooting.

    Using the troubleshooter from network in Windows 7

    http://Windows.Microsoft.com/en-us/Windows7/using-the-network-troubleshooter-in-Windows-7

    Step 2

    Try to update the drivers

    Updated a hardware driver that is not working properly
    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

    Method 2

    If the problem persists, try to follow the steps mentioned in the following tutorial.

    Wireless and wired network problems

    http://Windows.Microsoft.com/en-in/Windows/network-connection-problem-help#network-problems=Windows-7&V1H=win81tab1&V2H=win7tab1&V3H=winvistatab1&v4h=winxptab1

    Additional information:

    You can also view the following link.

    Why can't I connect to the Internet?

    http://Windows.Microsoft.com/en-us/Windows/cant-connect-Internet#1TC=Windows-7

    Hope it would help. If problem persists always post back with the current state of your computer and the result of the proposed suggestion, we will be happy to help you.

    Thank you.

  • Need help - camera not connected in Tandberg 6000 MXP

    Hello

    After connection to the tandberg 6000 mxp codec HD camera, I get message camera not connected.

    There is no speicial cable to this code? and what is the axis of the s-video on the codec that mark as "'primary' cam?

    Thanks in advance

    Shy

    Camera cable aboard MXP is similar, but it does not work with 6000 MXP codecs. I assume that your cable is marked with C3000 (works only with Edsge and 3000 MXP codecs). You need the cable marked with C6000. I don't know the SKU of CISCO for this cable. It may help you reference TANDBERG:

    115420 camera HD t6000s cable, 2 m

    115421 camera HD t6000s cable, 5 m

    I hope this help you!

  • Need help request!

    Hi all

    I am faced with a request to generate a model:

    The problem is the following:

    I have a test table in

    create table test

    (

    Identification number,

    varchar2 (20 char) value,

    date date

    );

    and the row values are as follows:

    value date: ID:

    1:value1:Date1

    1:value2:date2

    1:value3:date 3

    where date1 is today, date2 is yesterday and date 3 is the day before yesterday.

    I have to generate a format like below:

    ID: old_value:new_value:changed_date

    1:value3:value2:date2

    1:value2:value1:Date1

    where id, old_value, new_value and modified date are columns.

    Any suggestions would be helpful.

    select *
    from (
      select id
           , lag(value) over(partition by id order by dt) as old_value
           , value as new_value
           , dt as changed_date
      from test
    )
    where old_value is not null ;
    
  • Need help is not the serial number

    I re install my adobe 9 pro extended edition on a new machine, my other a dying and I have the original cd but no serial number. I transferred all the CDs and DVDs in the carrier and I am in school and need of this program do - what I do

    First of all, see https://helpx.adobe.com/x-productkb/global/find-serial-number.html

    If this does not help, there are programs that can retrieve the serial numbers of installed programs; ask Google.

  • Need help, do not bind

    Try to use bind for two dependents select menus, category and subcategory, get the error "Bind failed, element not found: T_categories_ID" it drives me crazy :-)

    The "problem" is that I have to work with a CMS created by someone else, categories and subcategories are in the same table - oef-. Any help would be greatly appreciated. I continue to feel that this should be simple...

    form:

    < cfform >
    < table >
    < b >
    Media select < td > type: < table >
    < td > < cfselect name = "categoryid".
    bind = "CFC:CFC. GetCategories.GetCategories ().
    bindOnLoad = "true" / > < table >
    < /tr >
    < b >
    < td > Art Select: < table >
    < td > < cfselect name = 'subcatid '.
    bind = "CFC:CFC. GetCategories.getsubcategories ({T_categories_ID}) "/ > < table >.
    < /tr >
    < /table >

    < / cfform >

    The EFA:

    < cfproperty output = "false" >

    <!--> get table of categories
    < cffunction = 'getcategories' access returnType = name 'remotely' 'array' = >
    <!--> set variables
    < cfset var data = "" >
    < cfset var result = ArrayNew (2) >
    < cfset var i = 0 >

    <!--> obtain data for categories
    < name cfquery = "data" datasource = "#request.dba #" >
    SELECT T_categories_ID, T_categories_name
    OF T_categories
    WHERE T_categories_partnerID = #session.partnerID # AND
    T_categories_active = 1 AND
    T_categories_ID > 0 AND
    T_categories_name <>'NULL '.
    ORDER BY T_categories_name
    < / cfquery >

    <!--> results converting it into table
    < cfloop index "i" = from = "1" to = "#data.» RecordCount #">"
    < cfset [i] [1] result = data. T_categories_ID [i] >
    < cfset result [i] [2] = data. T_categories_name [i] >
    < / cfloop >

    <!- and return it - >
    < cfreturn result >
    < / cffunction >

    <!--> get subcategories by type of media
    < cffunction = access "getsubcategories" name = "remote" returnType = "array" >
    < name cfargument = "T_categories_ID" type = "numeric" required = "true" >

    <!--> set variables
    < cfset var data = "" >
    < cfset var result = ArrayNew (2) >
    < cfset var i = 0 >

    <!--> get the data
    < name cfquery = "data" datasource = "#request.dba #" >
    SELECT T_categories_subcat_ID, T_categories_subcat_name
    OF T_categories
    WHERE T_categories_ID = #ARGUMENTS. T_categories_ID # AND
    T_categories_partnerID = session.partnerID AND
    T_categories_name = "NULL" AND
    T_categories_active = 1
    ORDER BY T_categories_subcat_name
    < / cfquery >

    <!--> results converting it into table
    < cfloop index "i" = from = "1" to = "#data.» RecordCount #">"
    < cfset [i] [1] result = data. T_categories_ID [i] >
    < cfset result [i] [2] = data. T_categories_name [i] >
    < / cfloop >

    <!- and return it - >
    < cfreturn result >
    < / cffunction >

    < / cfproperty >

    In the second select, you want to bind to the value of the CategoryID from the first select statement. Therefore, this attribute must be:

    bind = "CFC:CFC. GetCategories.getsubcategories ({CategoryID}).

  • Need help request! 2 tables

    Using Coldfusion 8 and MySQL.  I have 2 tables, one called products (100 points) and another table called Clearance (5 items).

    I see all 100 products and need to insert the discounted_price of the 5 elements of the game table in the query below.

    (* write it down field discounted_price only exists in the table).

    Also, how the returned below list can mark the checkboxes of the 5 elements of the game table.

    (* note-productid is used in both tables. I guess you could call it the foreign key between tables).

    I am a newbie and not sure how to write queries.  Any help would be appreciated.  Thanks in advance.

    < cfoutput query ="getProducts">

    < tr< cfif currentrow mod 2> class = 'weird'< / cfif >>

    < td >< div align ="left">< entry type ="checkbox" name ="promo" value ="#">< table >

    < td > (#getProducts.modelnumber #) #getProducts.modelnumber #< table >

    < td >#getProducts.modeldescription #< table >

    < td >#getProducts.category #< table >

    < td >#getProducts.subcategory #< table >

    < td > < input type ="text" name ="discounted_price" Value ="">< table >

    < /tr >

    < / cfoutput >


    Select p.modelnumber, p.modeldescription, p.category, p.subcategory, C.discounted_price
    left join products P C release on C.productid = P.productid

    <>class = 'weird'>

    checked >

    #getProducts.modelnumber # (#getProducts.modelnumber #)

    #getProducts.modeldescription #.

    #getProducts.category #.

    #getProducts.subcategory #.

    I hope this helps...

  • Need help recovering notes deleted icloud

    Hello, I'm having a problem where I had a ton of notes on my iPhone 6s and my iCloud started to become full. I went to settings < general < storage & use iCloud < Manage iCloud storage and I deleted my backup of notes so I could have more space on my iCloud. I thought that all my tickets would always remain on my phone but when I went to my notes app everything was gone! Is it possible to recover?

    Thanks in advance! I hope this is the right place to post this.

    ATXAdo wrote:

    ... I deleted my backup of notes...

    Hmmm, it's confusing.

    You are in iOS 9.3.2.  When iOS 9A was introduced, Notes crossed a great upgrade.

    Upgrading of your notes with iOS 9 and OS X El Capitan - Apple Support

    You upgrade Notes?  It doesn't seem like you did.

    Had you upgraded to Notes, you will find folders called 'Notes' and "Recently deleted" after pressing on the "<" symbol in the top left of the Notes application.

    You store your Notes in iCloud?

    Whatever the answer, iCloud notes are not saved (except the deleted Notes above).

  • HP Pavilion p7 - 1287c: need help, do not run a GTX on IPISB-CU (carmel2) 760 :(

    I just got a GTX 970 to replace my GTX 760, so I gave the 760 GTX to my brother, who is using HP Pavilion p7 - 1287c. However, I tried my best but cannot get his will system. It froze on the screen of the logo just after the system is turned on, then a few "beep" sound goes off after awhile. His mother is IPISB-CU (camel2). The PSU is not the problem; It's a new power SUPPLY EVGA Bronze 600W PSU. I tried to search for updates to the Bios, but found only an update of 2012. I have already installed, but no help.

    It is therefore impossible to run an EVGA GTX SC 760 ACX 2.0 2 GB on an IPISB-CU (camel2)? If you know some way to run it, please tell me. Thank you very much.

    o0shadow0o,

    Please start a new thread for your problem of BIOS, because it has nothing to do with the NVIDIA GTX 760 graphics card problem.

    Thank you for your cooperation.

  • Adobe error 1635 installs on vista laptop I tried Defender pro 15 need help im not that computer and adobe installs always ewrror 1635 need help

    any solution easy errror 1635 vista will not download adobe

    Hello

    I found this error on the adobe Web site, so I suggest to try the steps in the link below and check if it helps.

    I also see that there are some registry settings, you must run on the computer.

    Registry warning:
     
    Important this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    How to back up and restore the registry in Windows:
     
  • Newbie needs help can not compile a form of Oracle 10 g

    I'm trying to compile a form in Oracle 10 G. in the/u01/dba/oracle/product/1012ias/bin directory there is a script called frmcmp.sh which I assume is the correct script to use. He calls the frmcmp executable (it means compiling form, right?). Anway, I get the error

    FRM-91500: unable to start/complete the construction.

    This is on a HP - UX, HP - UX 11.11 running machine.

    I have unsuccessfully trying to get an answer on the Oracle website, and documentation that I have watched so far fail to solve the problem.

    I hate being a newbie!

    Thank you
    Harold

    for this you need to Xwindows session, if do not, you can do it by function as command line.

    * frmcmp.sh USERID=manager/manager@dbname MODULE_TYPE = form MODULE = form.fmb *.

    Greetings

  • Need help to HELP others

    My name is Terry {Admin note, name deleted for your protection, in accordance with the TOU strategy]. Im a support group called need to talk to me on facebook. Its a group who got me and others help those in a time of need. I started it in 2012. We have over 100 members. I've been running this group with my dell dest top. But saddely to say Im a single dad who is on a very tight budget. Im hoping that someone here in the dell community could possibly help with a donation of a used laptop. Ive found that I was not always there if someones in need due to not having access to the group. You are more then welcome to visit the Facebook group and join even. Im not the greates regarding the world of computing. But without a computer laptop ive found that I wasn't in time to accept applications for membership to the Group of those who asked.

    So if someone could give a helping hand or send me in the right direction, I would apprecate it along with others. Again, you can find the Group on facebook... Need to talk to me... Thank you for taking the time and reading this post

    You can check with the Foundation Michael and Susan Dell.

    http://www.MSDF.org/

  • Maintenance can not activate Photoshop CS3 key need help disabling.

    Our Organization has a photoshop CC3 2 pcs license. On a PC all installed and activated and that the license is not installed on the second PC, said that it is necessary to deactivate the license on the old computer, if there is no license. You must disable the license key on all of our Maintenance parts the cat cannot help.

    If you have a volume license then you will need to continue this through the volume license media.

    http://helpx.Adobe.com/x-productkb/policy-pricing/volume-licensing-site.html

    Volume License Activation number: https://forums.adobe.com/thread/1526938

    If it is a single-user license, you must go through the normal customer using cat.

    Chat support - the link below click the still need help? the option in the blue box below and choose the option to chat...
    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Serial number and activation support (non - CC) chat
    https://helpx.Adobe.com/contact.html?step=PHSP-PHXS_downloading-installing-setting-up_lice nsing-activation_stillNeedHelp

Maybe you are looking for