In and Not in operator

i have one lacks records in the table.In this table i want to select the
records whose status is GRADE A and GRADER B NOT GRADE C records
SO
which below query will be fast?In or NOT IN operator
SELECT * FROM GRADE_Details where grade in('GRADE A','GRADE B');
OR
SELECT * FROM GRADE_DETAILS WHERE grade NOT IN('GRADE C');
which one takes less time?

Hi,
did you try comparing the EXPLAIN plan of both the SQL's. Do you have INDEX on the grade field or data with NULL in the GRADE field.
I think IN will be better , but you can only confirm after looking into the explain plan.
thanks

Similar Messages

  • How to change the 'Default operating mode' of a mapping on the repository and not from the client

    Hi everybody,
    I am using OWB 11.2.0.3 and under the mapping's configuration property, I have the necessity to change the Run time parameter "Default operating mode" to SET_BASED in almost all my mappings.
    Because I have 745 mappings in which the Default operating mode is different from SET_BASED, instead to open 745 times the 'Configure' and update manually the value, is there a way to update safely these values (with an oracle predefined script) directly on the repository ?
    I know that exists a view called CMPSTRINGPROPERTYVALUE_V based on a table called CMPSCOPrpClasses, but changing this table it's very complicated for me because contains only keys and then I don't know in which way is connected with all the other structures....
    If somebody knows a method more efficient to do these updates on the repository and not from OWB client I will appreciated it!
    Thanks in advance
    Alessandro

    Urgent... help!!! Thanks
    in short, my server log says transaction access mode is "read only", so my calling home.create() always triggers a transaction rollback. How to change the access mode to "read write"?
    Is possible to work out through one of the descriptor files? Or ini settings of the underlying pointbase database? Or any other way around?

  • My iphone 4S only start whit cable plug in and then show battery very low (with red line end) then try to turn on but show searching in operator name command and not connecting and no work properly and when I plug out it turn off!!! what should I do?

    My iphone 4S only start whit cable plug in and then show battery very low (with red line end) then try to turn on but show searching in operator name command and not connecting and no work properly and when I plug out it turn off!!! what should I do?

    I'm afraid you'll have to get the phone serviced, dropping the phone must have damaged additional parts inside the phone.
    But Apple will not service the phone anymore, opening the phone and replacing the battery should only be done by authorized personal, not by users.
    You'll have to look for a 3rd party repair shop and see if they can fix this, sorry.

  • Mac won't update software or access iTunes shop. Message comes up with 'not connected to the net. Check connections' error. I still have internet access. Changed my Apple ID but no result. Repaired permissions and re-installed operating system.

    Mac won't update software or access iTunes shop. Message comes up with 'not connected to the net. Check connections' error. I still have internet access. Changed my Apple ID but no result. Repaired permissions and re-installed operating system.

    It sounds like you may have multiple problems, but none of them are likely to be caused by malware.
    First, the internet-related issues may be related to adware or a network compromise. I tend to lean more towards the latter, based on your description of the problem. See:
    http://www.adwaremedic.com/kb/baddns.php
    http://www.adwaremedic.com/kb/hackedrouter.php
    If investigation shows that this is not a network-specific issue, then it's probably adware. See my Adware Removal Guide for help finding and removing it. Note that you mention AdBlock as if it should have prevented this, but it's important to understand that ad blockers do not protect you against adware in any way. Neither would any kind of anti-virus software, which often doesn't detect adware.
    As for the other issues, it sounds like you've got some serious corruption. I would be inclined to say it sounds like a failing drive, except it sounds like you just got it replaced. How did you get all your files back after the new drive was installed?
    (Fair disclosure: I may receive compensation from links to my sites, TheSafeMac.com and AdwareMedic.com, in the form of buttons allowing for donations. Donations are not required to use my site or software.)

  • Iam not able to share internet in windows 8 from my macbook air...though my iphone ipad is connected to the hotspot well..tried everything but it seems to be different from windows 7  and other microsft operating systems setting. help!!

    Iam not able to share internet in windows 8 from my macbook air...though my iphone ipad is connected to the hotspot well..tried everything but it seems to be different from windows 7  and other microsft operating systems setting. help!!

    Ask on a Windows forum since that's what you're having a problem with.

  • I am selling my Mac Mini. I recently purchased OS X Lion. When I restore to factory settings, how can I ensure that the operating system will still be Lion, and not the original operating system, which I believe was Snow Leopard?

    I am selling my Mac Mini. I recently purchased OS X Lion. When I restore to factory settings, how can I ensure that the operating system will still be Lion, and not the original operating system, which I believe was Snow Leopard?

    If you bought Lion from the App Store, you can't legally or practically transfer it, because it's tied to your Apple ID. Reinstall the original software from the discs that came with the machine.

  • The browser Working very slowly at the first time open or when i open a new link And not as well as by And I have Operating system xp sp3 Updated

    the browser Working very slowly at the first time open or when i open a new link
    And not as well as by
    And I have Operating system xp sp3 Updated
    And i get Stop in the script

    '''I fixed mine by removing the Ask.com extension.'''
    Tools
    Add-ons
    Settings icon
    View Recent Updates
    Ask.com '''DISABLE'''
    Running FF 8.0 on Windows 7 (64-bit)

  • Hello, a cant type anything ,not in photoshop and not in inIllustrator ,I've got a message like "selected font faild during last operation".If problem persists,please desable the font..

    Hello, a cant type anything ,not in photoshop and not in inIllustrator ,I've got a message like "selected font faild during last operation".If problem persists,please desable the font..

    Looks like a corrupt font.
    Illustrator is more picky about fonts than any other application.

  • I have 2TB G-Drive it only will Write to operating system 10.8.3 and NOT the original 10.6 can I write with Both OS Systems....Please Advise

    I have 2TB G-Drive, it will only Write to operating system 10.8.3 (Mountain Lion) and NOT the original 10.6 (Snow Leopard) can I write with Both OS Systems....Please Advise how to

    I think I see where you're going with this: do you mean you're sharing an external drive which shows up on the Mac with Mountain Lion, but not Snow Leopard?
    Possible explanations:
    1) How is it connected? Does the external drive have two USB (or FireWire) connections, and you have a cable going from the drive to each Mac? If so, that's a big no-no. Never daisy chain the same drive to two different computers at the same time. You'd have to use one cable, dismount the drive from the Mac currently using it, then plug it into the other Mac and mount it there. It's a one-at-a-time thing.
    2) You're already doing the above correctly, but when using the Mac with Snow Leopard, when you turn on the drive, it refuses to appear on the desktop. I see this all the time when booting between one OS and the other on my Mac Pro. No idea why, but when Mountain Lion uses the drive, and I then try to use the same drive after booting into Snow Leopard, it won't appear (or only some partitions will appear) on the desktop.
    Simple, though odd solution. Launch Disk Utility. The drive partitions will then mount as they should. You don't even have to do anything in Disk Utility. Just launching it will cause the drives to mount as they should have in the first place.

  • Just download lightroom cc and not open at all. Have desistarei and will install several times and the problem continues ... I need a solution .. thank you  Operating System Windows 7 64bit

    just download lightroom cc and not open at all. Have desistarei and will install several times and the problem continues ... I need a solution .. thank you  Operating System Windows 7 64bit

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • My iPhone 4 with iOS 5, is stuck in the Facebook app and not able to do any operation.. Im not even able to go to Home.

    My iPhone 4 with iOS 5, is stuck in the Facebook app and not able to do any operation.. Im not even able to go to Home. I connected to iTunes in my PC, it was not able to sync. I tried calling my number from other phone, but it went to voice mail.

    Hold the Lock & Home buttons simultaneously for 10-15 seconds until the phone restarts and you see the Apple logo. You will not lose any data.

  • DSC alarm set and cleared without operator ack - the variable should be not alarmed and not acked

    We are deeply involved in porting our application from 7.1.1 to 8.6.1 under Windows XP.
    Our application  heavily depends on DSC and moving from 7.1.1 to 8.6.1 is actually much more than a simple porting....
    here is our last problem:
    it seems that there is no discrimination between 'active' alarms and 'acknowledged' alarms on a shared Variable  in case the 'ack Type' is set to 'USER'.
    Here is what happens:
    1) a Boolean shared variable is defined to be alarmed when 'high' (TRUE) and its ack type is set to 'USER' (the operator at our application must ack alarms).
    2) the Boolean var is set to TRUE -> it is declared alarmed (OK)  and not ack'ed (OK)
    3) the operator ack the variable -> it is declared alarmed (OK)  and ack'ed (OK)
    4) the Boolean var is set to FALSE -> it is declared not alarmed (OK)  and ack'ed (OK)
    5) the Boolean var is set to TRUE -> it is declared alarmed (OK)  and not ack'ed (OK)
    6) the Boolean var is set to FALSE -> it is declared alarmed (NOT OK!!!)  and not ack'ed (OK)
    7) the operator ack the variable -> it is declared not alarmed (OK)  and ack'ed (OK)
    This last case is the wrong situation: an alarm has been set and cleared without operator ack the variable should be not  alarmed  and not acked 
    Actually the variable returns OK only when ack'ed.
    see the attached project in which a small vi and a small shared variable lvlib allows to repeat the above steps.
    Note:
    A) same situation applies to 'double' shared variable
    B) under DSC version 7.1.1 everithing was OK 
    can anyone Help?
    Thank You Guglielmo Rozera
    Attachments:
    AlmAckTest.zip ‏18 KB

    Thank for your replay!
    I have tried to undeploy and deploy the library with ack type set to 'User' by default, and then run the vi but the behavior is always the same.
    The modification you suggest does not set 'User' ack type because data socket needs '2'  as 'User ' setting while property node needs '1' or (better) its own enumerated type.
    Anyway I've corrected the vi according to your suggestion and tried again but nothing changed...
    Here I attach the project modified with property node and an indicator to show what is the actual ack type
    I hope in your further investigations!
    Thank You
    Guglielmo 
    Attachments:
    AlmAckTest_2.zip ‏20 KB

  • When do I know if my iphone will switch to wifi and not that it costs some money to my phone network operator? is there a spec setting I must do. Or is it enough to have the phone set to wifi and phone connects directly when it makes contact with a wifi n

    When do I know if my iphone will switch to wifi and not that it costs somemoney to my phone network operator? is there a spec setting I must do.
    Or is it enough to have the phone set to wifi and phone connects directlywhen it makes contact with a wifi network?

    Thank you again for all of your help!! I really appreciate it!
    I think I am following -- I was able to upload to my iPhoto and all photos and videos are there that is a plus! I tried to create an Event in my iPhoto and put all of my photos in that event but for some reason, now my iTunes it not recognizing that Event in my iPhoto. It is not allowing me to import just that event at the moment but I may be doing something wrong. At least all of my pics and vids are in iPhoto so that is a plus and I know they are at least saved somewhere. Just for some reason, my iTunes it not locating the event that I created with only those photos.
    Thank you for letting me know about my contacts! How do I know if I have the contacts app?
    Also, I had no clue that my iCloud could be backed up via cellular data! However, is this a new feature with the most updated iOS?? Unforutnatly I am like 2 iOS updates behind because I don't have enough storage on my phone. I still get the notification that my phone needs to be plugged in and connected to wifi in order to back up to the cloud :-(
    How can I sync using USB? Right now when i click on the info tab for my iPhone in my iTunes this is the answer that I get -- I am a little unclear as to what it means.
    Sync Contacts:
    Your contacts are being synced with you iPhone over the air from iCloud. Over-the-air sync settings can be changed on you iPhone
    Sync Calendars:
    Your calendars are being synced with you iPhone over the air from iCloud. Over-the-air sync settings can be changed on you iPhone

  • My iMac is freezing and not operating smoothly HELP!

    Hi, my iMac is sluggish, freezing and not loading internet pages properly is there some sort of programme I should run to iron out these glitchs please help..

    EtreCheck version: 2.1.8 (121)
    Report generated 31 March 2015 11:10:35 am AEDT
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        iMac (21.5-inch, Late 2013) (Technical Specifications)
        iMac - model: iMac14,3
        1 2.9 GHz Intel Core i5 CPU: 4-core
        8 GB RAM Upgradeable
            BANK 0/DIMM0
                4 GB DDR3 1600 MHz ok
            BANK 1/DIMM0
                4 GB DDR3 1600 MHz ok
        Bluetooth: Good - Handoff/Airdrop2 supported
        Wireless:  en1: 802.11 a/b/g/n/ac
    Video Information: ℹ️
        NVIDIA GeForce GT 750M - VRAM: 1024 MB
            iMac 1920 x 1080
    System Software: ℹ️
        OS X 10.10.2 (14C1514) - Time since boot: 3:24:57
    Disk Information: ℹ️
        APPLE HDD HTS541010A9E662 disk0 : (1 TB)
            EFI (disk0s1) <not mounted> : 210 MB
            Macintosh HD (disk0s2) / : 999.35 GB (863.25 GB free)
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
    USB Information: ℹ️
        Apple Inc. BRCM20702 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Inc. FaceTime HD Camera (Built-in)
        Apple Inc. MacBook Air SuperDrive
    Thunderbolt Information: ℹ️
        Apple Inc. thunderbolt_bus
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
    User Launch Agents: ℹ️
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [loaded]    com.google.keystone.agent.plist [Click for support]
    User Login Items: ℹ️
        iTunesHelper    Application  (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
        Google Chrome    Application Hidden (/Applications/Google Chrome.app)
    Internet Plug-ins: ℹ️
        FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        AdobePDFViewerNPAPI: Version: 11.0.10 - SDK 10.6 [Click for support]
        AdobePDFViewer: Version: 11.0.10 - SDK 10.6 [Click for support]
        Flash Player: Version: 16.0.0.305 - SDK 10.6 Outdated! Update
        Default Browser: Version: 600 - SDK 10.10
        Silverlight: Version: 5.1.20125.0 - SDK 10.6 [Click for support]
    Audio Plug-ins: ℹ️
        DVCPROHDAudio: Version: 1.3.2
    3rd Party Preference Panes: ℹ️
        Flash Player  [Click for support]
    Time Machine: ℹ️
        Time Machine not configured!
    Top Processes by CPU: ℹ️
            12%    Google Chrome
             5%    WindowServer
             0%    fontd
             0%    Finder
             0%    Dock
    Top Processes by Memory: ℹ️
        215 MB    Google Chrome
        180 MB    mds_stores
        180 MB    Finder
        146 MB    WindowServer
        113 MB    Google Chrome Helper
    Virtual Memory Information: ℹ️
        2.80 GB    Free RAM
        3.87 GB    Active RAM
        900 MB    Inactive RAM
        1.02 GB    Wired RAM
        3.64 GB    Page-ins
        0 B    Page-outs
    Diagnostics Information: ℹ️
        Mar 31, 2015, 07:45:08 AM    Self test - passed

  • Using NULL and NOT NULL in prompted filters

    Dear all,
    While trying to grap the concept of prompted filters in sap bo web intelligence, I had a question whether why we cannot use NULL and NOT NULL while creating a prompted filters in our report.

    HI,
    'Is Null' and 'Not Null' are the predefined functions in webi which only eliminate the null values or considering only null values.
    'Is Null' and 'Not Null' are itself predefined functions that why you are not getting  prompts.
    Null values are standard across the databases so this is defined  as a function in webi to specific eliminate the null values.
    If something is not standard then there is option in the webi to use different operator with static values or with prompts.
    More more information on Null see the Null wiki page.
    Null (SQL) - Wikipedia, the free encyclopedia
    Amit

Maybe you are looking for