Select data from tab 1 that are not in tab 2

hi,
i want to select data (mnr, date) from tab1, which are not in tab2!
what would be the best select-statement for this problem.
select mnr, date from tab1 where ...???

SELECT col1, col2 FROM tab1
MINUS
SELECT col1, col2 FROM tab2is one option. There are dozens of other approaches, some of which may perform better and some which may perform worse, but this is generally pretty efficient and pretty easy to understand.
Justin

Similar Messages

  • [svn:fx-trunk] 8417: Remove themes from the package that are not compiling cleanly

    Revision: 8417
    Author:   [email protected]
    Date:     2009-07-07 04:50:21 -0700 (Tue, 07 Jul 2009)
    Log Message:
    Remove themes from the package that are not compiling cleanly
    bug: https://bugs.adobe.com/jira/browse/SDK-21144
    qa: yes
    doc:
    checkintests: pass
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-21144
    Modified Paths:
        flex/sdk/trunk/build.xml

  • Is there a way to retrieve pictures deleted from photo stream that are not yet on camera roll?

    Is there any way to retrieve pictures deleted from photo stream that are not yet on camera roll? I used my iPhone for a camera and put pix on iPad through photo stream. But I didn't realize they were not on the iPad camera roll, and deleted them from the phone Photostream. Now they are gone. Any chance to find them in the cloud?

    No, there is no re-cycling bin on the iPad. If you deleted them from the card, and you havn't yet re-used the card, then there may be recovery software that you can get for your computer that might be able to get them back.

  • How do I delete items from menu bar  that are not part of the OS

    How do I delete items from menu bar  that are not part of the OS

    Perhaps you could be more specific, as it is a little difficult to answer your question without any details.  I can give you some general ideas though.
    On my machine there are a few applications that have installed items into the menu bar - I'm assuming you are talking about the icons on the right hand side of the top bar. To remove those items, I would generally need to uninstall the program that created them. To do this varies a little from application to application.
    Also, sometimes an application will have preferences that allow you choose if you want to display the item in the menu bar.
    So, my general advice would be that you need to identify the application that placed the item there, and remove it from your computer.  If there is an uninstall program for that application, I would run that in the first instance.
    If you don't actually wish to uninstall the application, you may need to click on the item or run the application and see if there is a setting to not show the menu bar item.
    Hope that helps.
    Ivan

  • How do I delete songs from my iphone that are not on my itunes account?

    How do I delete songs from my iphone that are not on my itunes account?

    You mean music that was not purchased from the iTunes Store?
    If so, that means the music was transferred from your iTunes library on computer via the iTunes sync process - unless you are an iTunes Match subscriber.
    Music transferred from your computer can be removed the same way - via the iTunes sync process or you should be able to delete individual songs direct from the iPhone.

  • Performance issue in selecting data from a view because of not in condition

    Hi experts,
    I have a requirement to select data in a view which is not available in a fact with certain join conditions. but the fact table contains 2 crore rows of data. so this view is not working at all. it is running for long time. im pasting query here. please help me to tune it. whole query except prior to not in is executing in 15 minutes. but when i add not in condition it is running for so many hours as the second table has millions of records.
    CREATE OR REPLACE FORCE VIEW EDWOWN.MEDW_V_GIEA_SERVICE_LEVEL11
       SYS_ENT_ID,
       SERVICE_LEVEL_NO,
       CUSTOMER_NO,
       BILL_TO_LOCATION,
       PART_NO,
       SRCE_SYS_ID,
       BUS_AREA_ID,
       CONTRACT,
       WAREHOUSE,
       ORDER_NO,
       LINE_NO,
       REL_NO,
       REVISED_DUE_DATE,
       REVISED_QTY_DUE,
       QTY_RESERVED,
       QTY_PICKED,
       QTY_SHIPPED,
       ABBREVIATION,
       ACCT_WEEK,
       ACCT_MONTH,
       ACCT_YEAR,
       UPDATED_FLAG,
       CREATE_DATE,
       RECORD_DATE,
       BASE_WAREHOUSE,
       EARLIEST_SHIP_DATE,
       LATEST_SHIP_DATE,
       SERVICE_DATE,
       SHIP_PCT,
       ALLOC_PCT,
       WHSE_PCT,
       ABC_CLASS,
       LOCATION_ID,
       RELEASE_COMP,
       WAREHOUSE_DESC,
       MAKE_TO_FLAG,
       SOURCE_CREATE_DATE,
       SOURCE_UPDATE_DATE,
       SOURCE_CREATED_BY,
       SOURCE_UPDATED_BY,
       ENTITY_CODE,
       RECORD_ID,
       SRC_SYS_ENT_ID,
       BSS_HIERARCHY_KEY,
       SERVICE_LVL_FLAG
    AS
       SELECT SL.SYS_ENT_ID,
                 SL.ENTITY_CODE
              || '-'
              || SL.order_no
              || '-'
              || SL.LINE_NO
              || '-'
              || SL.REL_NO
                 SERVICE_LEVEL_NO,
              SL.CUSTOMER_NO,
              SL.BILL_TO_LOCATION,
              SL.PART_NO,
              SL.SRCE_SYS_ID,
              SL.BUS_AREA_ID,
              SL.CONTRACT,
              SL.WAREHOUSE,
              SL.ORDER_NO,
              SL.LINE_NO,
              SL.REL_NO,
              SL.REVISED_DUE_DATE,
              SL.REVISED_QTY_DUE,
              NULL QTY_RESERVED,
              NULL QTY_PICKED,
              SL.QTY_SHIPPED,
              SL.ABBREVIATION,
              NULL ACCT_WEEK,
              NULL ACCT_MONTH,
              NULL ACCT_YEAR,
              NULL UPDATED_FLAG,
              SL.CREATE_DATE,
              SL.RECORD_DATE,
              SL.BASE_WAREHOUSE,
              SL.EARLIEST_SHIP_DATE,
              SL.LATEST_SHIP_DATE,
              SL.SERVICE_DATE,
              SL.SHIP_PCT,
              0 ALLOC_PCT,
              0 WHSE_PCT,
              SL.ABC_CLASS,
              SL.LOCATION_ID,
              NULL RELEASE_COMP,
              SL.WAREHOUSE_DESC,
              SL.MAKE_TO_FLAG,
              SL.source_create_date,
              SL.source_update_date,
              SL.source_created_by,
              SL.source_updated_by,
              SL.ENTITY_CODE,
              SL.RECORD_ID,
              SL.SRC_SYS_ENT_ID,
              SL.BSS_HIERARCHY_KEY,
              'Y' SERVICE_LVL_FLAG
         FROM (  SELECT SL_INT.SYS_ENT_ID,
                        SL_INT.CUSTOMER_NO,
                        SL_INT.BILL_TO_LOCATION,
                        SL_INT.PART_NO,
                        SL_INT.SRCE_SYS_ID,
                        SL_INT.BUS_AREA_ID,
                        SL_INT.CONTRACT,
                        SL_INT.WAREHOUSE,
                        SL_INT.ORDER_NO,
                        SL_INT.LINE_NO,
                        MAX (SL_INT.REL_NO) REL_NO,
                        SL_INT.REVISED_DUE_DATE,
                        SUM (SL_INT.REVISED_QTY_DUE) REVISED_QTY_DUE,
                        SUM (SL_INT.QTY_SHIPPED) QTY_SHIPPED,
                        SL_INT.ABBREVIATION,
                        MAX (SL_INT.CREATE_DATE) CREATE_DATE,
                        MAX (SL_INT.RECORD_DATE) RECORD_DATE,
                        SL_INT.BASE_WAREHOUSE,
                        MAX (SL_INT.LAST_SHIPMENT_DATE) LAST_SHIPMENT_DATE,
                        MAX (SL_INT.EARLIEST_SHIP_DATE) EARLIEST_SHIP_DATE,
                        MAX (SL_INT.LATEST_SHIP_DATE) LATEST_SHIP_DATE,
                        MAX (
                           CASE
                              WHEN TRUNC (SL_INT.LAST_SHIPMENT_DATE) <=
                                      TRUNC (SL_INT.LATEST_SHIP_DATE)
                              THEN
                                 TRUNC (SL_INT.LAST_SHIPMENT_DATE)
                              ELSE
                                 TRUNC (SL_INT.LATEST_SHIP_DATE)
                           END)
                           SERVICE_DATE,
                        MIN (
                           CASE
                              WHEN TRUNC (SL_INT.LAST_SHIPMENT_DATE) >=
                                      TRUNC (SL_INT.EARLIEST_SHIP_DATE)
                                   AND TRUNC (SL_INT.LAST_SHIPMENT_DATE) <=
                                          TRUNC (SL_INT.LATEST_SHIP_DATE)
                                   AND SL_INT.QTY_SHIPPED = SL_INT.REVISED_QTY_DUE
                              THEN
                                 100
                              ELSE
                                 0
                           END)
                           SHIP_PCT,
                        SL_INT.ABC_CLASS,
                        SL_INT.LOCATION_ID,
                        SL_INT.WAREHOUSE_DESC,
                        SL_INT.MAKE_TO_FLAG,
                        MAX (SL_INT.source_create_date) source_create_date,
                        MAX (SL_INT.source_update_date) source_update_date,
                        SL_INT.source_created_by,
                        SL_INT.source_updated_by,
                        SL_INT.ENTITY_CODE,
                        SL_INT.RECORD_ID,
                        SL_INT.SRC_SYS_ENT_ID,
                        SL_INT.BSS_HIERARCHY_KEY
                   FROM (SELECT SL_UNADJ.*,
                                DECODE (
                                   TRIM (TIMA.DAY_DESC),
                                   'saturday',   SL_UNADJ.REVISED_DUE_DATE
                                               - 1
                                               - early_ship_days,
                                   'sunday',   SL_UNADJ.REVISED_DUE_DATE
                                             - 2
                                             - early_ship_days,
                                   SL_UNADJ.REVISED_DUE_DATE - early_ship_days)
                                   EARLIEST_SHIP_DATE,
                                DECODE (
                                   TRIM (TIMB.DAY_DESC),
                                   'saturday',   SL_UNADJ.REVISED_DUE_DATE
                                               + 2
                                               + LATE_SHIP_DAYS,
                                   'sunday',   SL_UNADJ.REVISED_DUE_DATE
                                             + 1
                                             + LATE_SHIP_DAYS,
                                   SL_UNADJ.REVISED_DUE_DATE + LATE_SHIP_DAYS)
                                   LATEST_SHIP_DATE
                           FROM (SELECT NVL (s2.sys_ent_id, '00') SYS_ENT_ID,
                                        cust.customer_no CUSTOMER_NO,
                                        cust.bill_to_loc BILL_TO_LOCATION,
                                        cust.early_ship_days,
                                        CUST.LATE_SHIP_DAYS,
                                        ord.PART_NO,
                                        ord.SRCE_SYS_ID,
                                        ord.BUS_AREA_ID,
                                        ord.BUS_AREA_ID CONTRACT,
                                        NVL (WAREHOUSE, ord.entity_code) WAREHOUSE,
                                        ORDER_NO,
                                        ORDER_LINE_NO LINE_NO,
                                        ORDER_REL_NO REL_NO,
                                        TRUNC (REVISED_DUE_DATE) REVISED_DUE_DATE,
                                        REVISED_ORDER_QTY REVISED_QTY_DUE,
                                        --   NULL QTY_RESERVED,
                                        --    NULL QTY_PICKED,
                                        SHIPPED_QTY QTY_SHIPPED,
                                        sold_to_abbreviation ABBREVIATION,
                                        --        NULL ACCT_WEEK,
                                        --      NULL ACCT_MONTH,
                                        --    NULL ACCT_YEAR,
                                        --  NULL UPDATED_FLAG,
                                        ord.CREATE_DATE CREATE_DATE,
                                        ord.CREATE_DATE RECORD_DATE,
                                        NVL (WAREHOUSE, ord.entity_code)
                                           BASE_WAREHOUSE,
                                        LAST_SHIPMENT_DATE,
                                        TRUNC (REVISED_DUE_DATE)
                                        - cust.early_ship_days
                                           EARLIEST_SHIP_DATE_UnAdj,
                                        TRUNC (REVISED_DUE_DATE)
                                        + CUST.LATE_SHIP_DAYS
                                           LATEST_SHIP_DATE_UnAdj,
                                        --0 ALLOC_PCT,
                                        --0 WHSE_PCT,
                                        ABC_CLASS,
                                        NVL (LOCATION_ID, '000') LOCATION_ID,
                                        --NULL RELEASE_COMP,
                                        WAREHOUSE_DESC,
                                        NVL (
                                           DECODE (MAKE_TO_FLAG,
                                                   'S', 0,
                                                   'O', 1,
                                                   '', -1),
                                           -1)
                                           MAKE_TO_FLAG,
                                        ord.CREATE_DATE source_create_date,
                                        ord.UPDATE_DATE source_update_date,
                                        ord.CREATED_BY source_created_by,
                                        ord.UPDATED_BY source_updated_by,
                                        ord.ENTITY_CODE,
                                        ord.RECORD_ID,
                                        src.SYS_ENT_ID SRC_SYS_ENT_ID,
                                        ord.BSS_HIERARCHY_KEY
                                   FROM EDW_DTL_ORDER_FACT ord,
                                        edw_v_maxv_cust_dim cust,
                                        edw_v_maxv_part_dim part,
                                        EDW_WAREHOUSE_LKP war,
                                        EDW_SOURCE_LKP src,
                                        MEDW_PLANT_LKP s2,
                                        edw_v_incr_refresh_ctl incr
                                  WHERE ord.BSS_HIERARCHY_KEY =
                                           cust.BSS_HIERARCHY_KEY(+)
                                        AND ord.record_id = part.record_id(+)
                                        AND ord.part_no = part.part_no(+)
                                        AND NVL (ord.WAREHOUSE, ord.entity_code) =
                                               war.WAREHOUSE_code(+)
                                        AND ord.entity_code = war.entity_code(+)
                                        AND ord.record_id = src.record_id
                                        AND src.calculate_back_order_flag = 'Y'
                                        AND NVL (cancel_order_flag, 'N') != 'Y'
                                        AND UPPER (part.source_plant) =
                                               UPPER (s2.location_code1(+))
                                        AND mapping_name = 'MEDW_MAP_GIEA_MTOS_STG'
                                      --  AND NVL (ord.UPDATE_DATE, SYSDATE) >=
                                      --         MAX_SOURCE_UPDATE_DATE
                                        AND UPPER (
                                               NVL (ord.order_status, 'BOOKED')) NOT IN
                                               ('ENTERED', 'CANCELLED')
                                        AND TRUNC (REVISED_DUE_DATE) <= SYSDATE) SL_UNADJ,
                                EDW_TIME_DIM TIMA,
                                EDW_TIME_DIM TIMB
                          WHERE TRUNC (SL_UNADJ.EARLIEST_SHIP_DATE_UnAdj) =
                                   TIMA.ACCOUNT_DATE
                                AND TRUNC (SL_UNADJ.LATEST_SHIP_DATE_Unadj) =
                                       TIMB.ACCOUNT_DATE) SL_INT
                  WHERE TRUNC (LATEST_SHIP_DATE) <= TRUNC (SYSDATE)
               GROUP BY SL_INT.SYS_ENT_ID,
                        SL_INT.CUSTOMER_NO,
                        SL_INT.BILL_TO_LOCATION,
                        SL_INT.PART_NO,
                        SL_INT.SRCE_SYS_ID,
                        SL_INT.BUS_AREA_ID,
                        SL_INT.CONTRACT,
                        SL_INT.WAREHOUSE,
                        SL_INT.ORDER_NO,
                        SL_INT.LINE_NO,
                        SL_INT.REVISED_DUE_DATE,
                        SL_INT.ABBREVIATION,
                        SL_INT.BASE_WAREHOUSE,
                        SL_INT.ABC_CLASS,
                        SL_INT.LOCATION_ID,
                        SL_INT.WAREHOUSE_DESC,
                        SL_INT.MAKE_TO_FLAG,
                        SL_INT.source_created_by,
                        SL_INT.source_updated_by,
                        SL_INT.ENTITY_CODE,
                        SL_INT.RECORD_ID,
                        SL_INT.SRC_SYS_ENT_ID,
                        SL_INT.BSS_HIERARCHY_KEY) SL
        WHERE (SL.BSS_HIERARCHY_KEY,
               SL.ORDER_NO,
               Sl.line_no,
               sl.Revised_due_date,
               SL.PART_NO,
               sl.sys_ent_id) NOT IN
                 (SELECT BSS_HIERARCHY_KEY,
                         ORDER_NO,
                         line_no,
                         revised_due_date,
                         part_no,
                         src_sys_ent_id
                    FROM MEDW_MTOS_DTL_FACT
                   WHERE service_lvl_flag = 'Y');
                   thanks
    asn

    Also 'NOT IN' + nullable columns can be an expensive combination - and may not give the expected results. For example, compare these:
    with test1 as ( select 1 as key1 from dual )
       , test2 as ( select null as key2 from dual )
    select * from test1
    where  key1 not in
           ( select key2 from test2 );
    no rows selected
    with test1 as ( select 1 as key1 from dual )
       , test2 as ( select null as key2 from dual )
    select * from test1
    where  key1 not in
           ( select key2 from test2
             where  key2 is not null );
          KEY1
             1
    1 row selected.Even if the columns do contain values, if they are nullable Oracle has to perform a resource-intensive filter operation in case they are null. An EXISTS construction is not concerned with null values and can therefore use a more efficient execution plan, leading people to think it is inherently faster in general.

  • I just purchased a mac mini and wondered if it's safe to download the Kobo reader app. can I download things from the internet that are not available in the apple store?

    I just purchased a mac mini and wondered if it's safe to download from the internet (such as Kobo) that are not available on the app store. It asked me if I was sure it was safe, so it's got me worried.

    If you know the sites are OK, then download away.

  • HT4910 how do you remove pics from my ipad that are not in camera roll?

    I have a couple thousand pics on my ipad that I put on from my laptop a long time ago. they are not on the camera roll. I can delete those but can't figure out haw to remove the rest. I updated I tunes and can't find were it shows the files on my device. can anyone help?

    If you want to remove all of your synced photos .....
    Connect your iPad to your computer and launch iTunes.
    Select your iPad under the devices tab in the upper right or in the left sidebar, if you have the sidebar enabled.
    Click on Photos at the top of the iTunes window on the right.
    Uncheck the "Sync Photos From" heading
    Click on Apply in the lower right corner of iTunes.
    IF that doesn't work, create an empty folder on your desktop and call it "Empty Folder". Select that folder in the "Sync Photos From" heading in the photos tab of iTunes and then click on Apply. That will also remove all synced photos.

  • HT4859 My phone was stolen.  I synced with my computer and lost some pictures that are backed up on the cloud.  How do I get pics from the cloud that are not in my photostream?

    My phone was stolen.  I first backe up from the icloud but then synced with my computer and lost some pictures that are backed up on the cloud.  How do I get pics from my old phone which are backed up on the cloud but are not in my photostream?

    If you have an iCloud backup, restore it to your phone as explained here: https://support.apple.com/kb/ph12521.  If you have a backup on your computer instead, restore it to your phone by connecting your phone to your computer, opening iTunes and going to File>Devices>Restore from Backup.

  • How to retrieve data from a dimension that is not directly joined to a fact

    Hi,
    In my case I have 2 dimensions and one fact. I need to runa report collecting data from all the three tables.
    I need to do the following.
    DIMA DIMB FACT1
    FACT1 is joined with DIMA
    DIMA is joined with DIMB
    FACT1 is not Joined with DIMB.
    My report should still retrieve information from DIMB by connecting FACT1 with DIMA and retrieve corresponding data from DIMB.
    Please suggest how can I do this .
    I am using 10.1.3 version of OBIEE
    You help will be much appreciated.

    Hi,
    I think your data model is snow-flake schema,we can get the data from snow-flake schema also.Pull the columns from both fact and DIMB into criteria.It will display the result.
    mark if helpful/correct...
    thanks,
    prassu

  • Is it possible to transfer photos from the iPad that are not in camera roll but in albums I have created?

    Hi there. can someone please tell me there is a way of doing this because I was on the phone to 121 for two hours and they couldn't help in the way I wanted.
    I have a customer who took his iPad on holiday and with a cable adapter used it to back up the photos from his campact camera.
    Whilst he was out there he took the time to separate all the photos into albums using the standard iPad 'Photos' app. There must be 50 or so albums in there.
    So now he wants to get those photos off but keep the organisation the app has allowed him to do but if we plug it up to either his Macbook pro or Windows neither the hundreds of photos or thier albums are nowhere to be seen.
    The only way I can find to get them out using Macbook or Windows is to transfer photos back into the camera roll or to share them via the cloud but both ways lose the album organisation.
    Obviously if there is no way to do this (which seems bonkers for a modern device) then we shall have to painstakingly do just that. It would be nice not to have to endure the hours of work is all.
    Thanks in advance!!!

    How to Transfer Photos from an iPad to a Computer
    http://www.wikihow.com/Transfer-Photos-from-an-iPad-to-a-Computer
    Importing Personal Photos and videos from your iOS device to your computer.
    http://support.apple.com/kb/HT4083
    iTunes: Frequently asked questions about viewing and syncing videos
    http://support.apple.com/kb/HT2729
    Also check out the Photo Manager Pro app.
    https://itunes.apple.com/us/app/photo-manager-pro/id393858562
    Check out the Feem WiFi File Transfer app
    https://itunes.apple.com/us/app/feem-wifi-file-transfer-free/id596378699?mt=8
     Cheers, Tom 

  • How do I import photos from my ipad that are not in the saved photos folder

    I do have a saved photos album and was able to import those. However, I have several other folders and I can't figure out how to get the photos from my iPad to my new iMac. Or for that matter, into the saved photos folder. This is my first experience with iPhoto. Any help? Thanks!

    If you want to remove all of your synced photos .....
    Connect your iPad to your computer and launch iTunes.
    Select your iPad under the devices tab in the upper right or in the left sidebar, if you have the sidebar enabled.
    Click on Photos at the top of the iTunes window on the right.
    Uncheck the "Sync Photos From" heading
    Click on Apply in the lower right corner of iTunes.
    IF that doesn't work, create an empty folder on your desktop and call it "Empty Folder". Select that folder in the "Sync Photos From" heading in the photos tab of iTunes and then click on Apply. That will also remove all synced photos.

  • How do i get picture from my iphone that are not in my camera roll to my computer??? pleasee help been fiddling for 4 hours!!!

    i have been trying to get photo from my phone onto my new computer because i lost everything. i have got all the photos from my camera roll onto it but i can get the one that i put on there from my old computer. i did try download iexplorer but you have to pay for it in dollars im in the UK. i have noticed to that if i edit  few they go into the camera roll after but then how do i delete the orignals. please someone help its really frustrating me!!!!!

    The photo sync is one way - computer to iphone.  As the photos came from your computer in the first place, then they should still be there and should have been included in your regular backup copy of your computer.
    You can e-mail them to yourself.  they will not be of the original quality.
    The iphone is not a storage/backup device. It simply mirrors the selected content of your computer/cloud service.

  • Charges from itunes store that are not mine

    WARNING to all you itunes  users out there!! . I woke up this morning to several fraudulent charges charged to me by itunes All were in Chinese!!! Trying to resolve these, I discovered the ONLY way to contact itunes is via email----- and it appears that  itunes has no FRAUD division,  It looks like the only way to fight fraudulent charges is through your credit card, paypal or whatever form of paymeent you use. It is amazing to me what suckers we are, In order to use an iphone, ipod or ipad, apple requires us to have an itunes account . they willingly take our money for purchases but have absolutely no viable support system in place for us if things go wrong. Surely, apple is doing well enough financially to afford us a liittle support!!  Please let me know if I am wrong and if there is a fraud division for iuines that has a phone number I can call! Thsi may noyt be big to itines buit it is to me!! I am a single mom and  now have no money in my bank account which means no gas to get ny kids to school ., etc, etc thanks!!

    You credit card company would handle any reimbursement.
    Change your password so that your account canot be accessed again.

  • Select data from table not in another table

    Hi,
    I want to select data from table A which is not in table B.
    Currently I am doing:
    select
    snoA,
    nameA,
    dobA
    from A
    where snoA not in
    (select snoB from A, B
    where snoA = snoB
    and nameA = nameB)
    But above is very slow.
    Can I do something like:
    select
    snoA,
    nameA,
    dobA
    from A, B
    where
    EXCLUDE ( snoA = snoB and nameA = nameB)
    Please note that I need the where condition on both the columns.
    any help will be appreciated.
    -- Harvey

    What are the approximate data volumes in A and B?
    What is "very slow"?
    What version of Oracle?
    What is the query plan?
    Without knowing anything about your system, my first thought would be to see if a NOT EXISTS happened to be faster for your data
    SELECT snoA,
           nameA,
           dobA
      FROM a
    WHERE NOT EXISTS (
        SELECT 1
          FROM b
         WHERE a.snoA = b.snoB
           AND a.nameA = b.nameB )Of course, I'm not sure why you are joining A & B in your NOT IN subquery. It would seem like you would just need a correlated subquery, i.e.
    SELECT snoA,
           nameA,
           dobA
      FROM a
    WHERE snoA NOT IN (
        SELECT snoB
          FROM b
         WHERE a.snoA = b.snoB
           AND a.nameA = b.nameB )That should be more efficient than the original query. The NOT EXISTS version may or may not be more efficient than the NOT IN depending on data volumes.
    Justin

Maybe you are looking for

  • Pluggable Mappings and Input Parameters

    Hi All, I have a mapping which receives 2 input parameters. I have created a pluggable mapping to which I would like to pass those same values. Is is possible to pass parameter values into a pluggable mapping such that these values are NOT part of th

  • IE6 error in WD Application

    Hi community, In WD application in doInit method check a UME Groups of UserID but when try stop the flow in doModifyView with "IWDConfirmDialog" at create method the browser retutn the following errors with Microsoft Error Popup: "Internet Explorer c

  • Problem in functions

    how to write ddl statements in function. give me with example how to to dml statements in function.give me sample code. i am calling one function in sql experession. that function constainf the dml statemsts. how to write that function.

  • Safari quits when viewing webcams

    I have several webcams which I view from WAN. Safari is very bad at handling these, and lately quits when I try to change webcam views: that is, if I am viewing one webcam, and select the URL for another, Safari will usually quit. I have gone over al

  • JBoss Seam

    Hello, i want use JSF and EJB and I have jboss-seam-1.0.1.GA.zip file, but I don't know what i have to do with this file. I can see the booking example, but i don't know how i can do a new application. I use eclipse, jboss and myeclipse. can you help