What index to use for 'where the pass is IS NOT NULL' query

If I need a query of the form:

Select * from INV_TABLE where R_TIMEOUT IS NOT NULL

What type of index on the column R_TIMEOUT do you offer?

Note that I'm only interested in the question of whether it is null or not.

Thank you.

It would really depend on how many lines was nothing compared to the number of lines not null.  An index of single column on r_timeout would be index only the non-null values, then, if most of the rows have a null value for r_timeout which could be quite effective as a path.  However, if most of the lines are not zero, then it is likely that a full table scan would be more effective, especially if you select all the columns in the table.

John

Tags: Database

Similar Questions

  • What Oracle network uses for CAR traffic? where you get the Info?

    Hello

    I use two-node RAC on Oracle 10 g R2 (10.2.0.3.0) version on SUN Solaris 10. I want to know "what Oracle network uses for CAR traffic? where you'll Info»

    -Kumar

    Hi Kumar,

    In 10g, you can query x$ ksxpia. If the cluster_interconnect is stored in the OCR (by default), you will get

    SQL > select INST_ID select, PUB_KSXPIA, PICKED_KSXPIA, NAME_KSXPIA, IP_KSXPIA, x$ ksxpia;

    If you have specified the cluster_interconnects parameter in your init.ora:

    Columns to look in: INST_ID select PICK NAME_KSXPIA IP_KSXPIA P

    And also you can use 'CPI oradebug' to see who connects the database uses:

    SQL > setmypid oradebug
    SQL > oradebug CPI

    It could be that useful...

    Thank you
    LaserSoft

  • I'm looking for where the trash blurs his trash

    I'm looking for where the trash blurs his trash. I want to remove it and put it into a thing of data storage, I bought as an E: / drive

    As you empty the trash it is not jam files (unless you have special 3rd party software), or put the files anywhere.  It simply removes the headers so that they no longer can be identified or consulted.  The space that they have taken/take is considered to be available and they are entirely deleted once they are replaced by something else.  If you want to save the deleted files on your drive E:\, then instead of emptying the trash, cut its contents and copy them to the E:\drive whenever you choose.

    If you want to find files that were emptied from the Recycle Bin, you must use a file recovery tool.  Here are a few options.

    http://www.SnapFiles.com/freeware/system/fwdatarecovery.html (first try Recuva)

    http://www.SnapFiles.com/get/DiskDigger.html (try this second - if this also fails, then the chances of recovery are very slim, but we invite you to try the other options)

    http://www.SnapFiles.com/get/easusdfr.html

    http://www.SnapFiles.com/get/restoration.html

    http://www.SnapFiles.com/downloads/Recuva/dlrecuva.html

    http://www.SoftPerfect.com/products/FileRecovery/

    http://techpaul.WordPress.com/2008/06/23/how-to-recover-your-lost-files/

    The files are not really deleted until they are crushed (although they are no longer available through conventional methods).  If you decide to try these recovery programs, you should stop using your drive hard immediately in order not to replace the data that you are trying to recover.  He slave on another PC and launch the recovery of this PC.  Even now you have definitely lost some of them if you use the same PC.  If you can not do this (slave on another PC), you run the risk of overwriting the data with every action you do on the PC (but you may still be able to recover some or most or even all files - it's a matter of luck).

    Only you can decide if the data is important enough to take the PC to an expert data recovery to recover files (they will have better programs and hardware to do that none of us do, and I've provided above).  Do NOT go to the Geek Squad or one of these centers of store-, they generally don't know what they are doing - it take for expert data recovery.  It will cost you a little and they generally offer no guarantees.  The decision is yours.

    Good luck and I hope this helps!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • I'm locked out of my ipod5 that I have not used for a long time, it is not connected to the Internet or iTunes is anyway can I unlock?

    I'm locked out of my ipod5 that I have not used for a long time, it is not connected to the Internet or iTunes is anyway can I unlock? In my opinion, it works on IOS8. Because I have not used in a long time, it has reset and does not connect to the wifi until I unlock, and I forgot the password to unlock it. I tried to clear up my iPhone but it requires Internet and iPod can not connect to Internet ithe, I also tried to restore the 'home' button and the lock button while connected to iTunes on my computer and that did not work either... Please let me know if I haven't tried something or have missed something.

    Thank you

    You have to follow the instructions for the erasure or use recovery mode in iTunes again. . You do not specify what happened when you tried to follow these instructions, or instructions for iTunes, which you tried to follow, but you will be able to exit the mode disabled via iTunes if you do not have Wifi:

    If you have forgotten the password for your iPhone, iPad or iPod touch, or your device is disabled - Apple supports

    See you soon,.

    GB

  • Should what format I use for my external drive for time machine?  I have a WD 2 TB that is formatted for PC new drive.

    Should what format I use for my external drive for time machine?  I have a WD 2 TB that is formatted for PC new drive.  When I got to disk utilities to erase, and then reformat the options are

    1 mac OS extended (journaled)

    2 mac OS extended (journaled, encrypted)

    3 mac OS Extended (respect for case-sensitive, journaled)

    4 mac OS extended (case-sensitive, journaled, encrypted)

    See the information below If you can not back up or restore your Mac with the help of Time Machine - Apple Support

    When you select a drive to use with Time Machine, your Mac automatically prompts you if you need to reformat the drive.

    • If you are using an external drive connected to your Mac, use disk utility to make sure that your backup disk is formatted in HFS + extended (journaled) and is the partition type GUID Partition Table (GPT).
    • If you use a time Capsule, formatting the drive for Time Machine preferences automatically formats the drive as HFS + Extended (respect for case-sensitive, journaled) with a GUID Partition Table (GPT).
  • What should I use for a replacement of WinMail in Windows.

    What should I use for a replacement from WinMail in Windows 7 when requires it a number of sites to meet an address or a link that the site offers an answer or a question.  I have msn, yahoo & gmail but lost WinMail when I've upgraded from Vista to Windows7.
    I lost WinMail thur a mistake some time & it was a nighmare tring to meet links on sites that requires to open a format Outlook, Outlook Express or WinMail.

    I have msn (hotmail), yaho & gmail, but none of them will come when I'm trying to respond to the link sites for a response. If one of those that should be used, how it equal in Windows7?

    Windows Update has nothing to do with the upgrade of Windows.

    Unlike Windows XP & Vista, Win7 does not have a default email Client. [What were thinking?]

    You will need to install a (e.g. MS Outlook;) Windows Live Mail; Oiseau-tonnerre) , and then set it as a default for mail in CUSTOM (<>) Set Program Access and defaults of the computer before any function article send to or MailTo will become available.

    You will find support for Win7 e-mail Clients in this forum: http://social.answers.microsoft.com/Forums/en-US/w7network/threads

    Support for Windows Live Mail (which will be able to import your data from Windows Mail Backup), you will find in this public newsgroup:
    http://www.Microsoft.com/communities/newsgroups/list/en-us/default.aspx?DG=Microsoft.public.Windows.live.mail.desktop

    Through your News Reader:
    News://msnews.Microsoft.com/Microsoft.public.Windows.live.mail.desktop

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Can what program I use to open the files PLX?

    Original title: PLX files

    Can what program I use to open the file in a readable format PLX?

    Hi Truman,

    I understand that you want to open the PLX files.

    Executable program written in Perl programming language; often used for Web applications that are running on a Web server. You can open them using the following application.

    Microsoft IIS with PerlIS.

    I hope this helps.

  • What driver to use for a HP 8563 A Spectrum Analyzer and a Giga - tronics 12000 has

    What driver to use for a spectrum analyzer HP 8563 and a Giga-tronics 12000 microwave synth... these two are not in the driver list can someon help

    Since there is no drivers, you can create your own, request one, use the Instrument i/o Assistant, or hope that someone has one and he posts here. On the creation of a help or to ask one, see the main page of the Instrument Driver Network . As long as you're familiar with the instrument and the manual, creating a driver is not so difficult.

  • RAZR V3xx - what is magnet used for?

    Well, I finally got the 'right' flex cable this thing (vs 60 50-pin) and during reassembly with diligence the phone, I suddenly a magnet attached to the end of the screwdriver from my jeweler!   ARRRRG!  Now, I think I know whence he (at least where my screwdriver point was when I noticed the presence of a magnet), but I don't see how it's particularly useful... There is "roundabout" on the "flip case" on the side of 60 pins.  This point is almost directly under the flex assembled cable, but the magnet seems to have no real function here.  On the side opposite of the case, below the camera cloth, there is a 'socket' where this magnet will fit, but it is not clear of what he (magnet) do here either.  The battery is currently (no pun intended) and everything seems normal so far.  I hesitate to load my SIM card into this phone until the load is complete, but I don't foresee any problems with the phone without magnet.   Bottom line is that I'm trying to understand what this magnet, about 1/8 "in diameter, is used and where the devil does it go... other than the end of my screwdriver?

    I believe you are referring to the magnet that the screen turns on and off when the phone is open and closed. When you open your screen there is a magnet which is pasted just above the LCD display at the top right. its small and money. The magnet interacts with a flex cable that sticks on the keyboard which is located above the battery on the left.

    It should look like this. http://CNN.CN/shop/Motorola-RAZR-magnet-flip-openclose-detection-p-558.html

  • What program to use to take the video of your screen? AND: How to convert .swf in .mp4?

    What program (free) can I use on my HP laptop (running on Windows 7) to take video of my screen? I used Jing to capture video, but it registers as a .swf file. I have not anything that can play a .swf. I tried Zamzar, but he's not convert .swf files. So, what can I use to convert the .swf in .mp4, please?

    I tried to download CamStudio, but Google Chrome has blocked, saying that the zip file would affect my browsing experience.

    I'm not a technology person. Any help is appreciated. Thank you.

    DM

    If you want a basic registration application that TechSmith is also Snaggit that will record audio and video, making the screenshots & is $ 49 for life.  Your call.

  • I want to know what mircosoft to use for education online

    I want to know what mircosoft to use for education online

    If you plan to go to school, I would contact the school to see what their or are the requirements of instructors.

    J W Stuart: http://www.pagestart.com

  • What do you use to track the specific type of mobile devices open your emails?

    Mobile email is on the rise. What do you use to track the specific type of mobile devices open your emails?

    We started to use the Sunflower (Email Analytics - sunflower) this month and have been very happy with it. They not only do report on e-mail clients, you will tell people how committed are with your email address (for example did they spend time reading it or just delete it right now?). They also allow you to track individually, which means you can identify iPhone or Android users and send them a targeted campaign.

  • What metrics to use for memory capacity planning? Active or consumed (in request or use vROPS)

    Hey all,.

    I was wondering once more what metrics to use for memory capacity planning. Since the information from different sources (for example your ESXi host needs more RAM to Iwan Rahabok or VMworld 2012: Session VSP1729 - virtualized memory understanding performance management - Eric Sloof - NTPRO.NL Kit Colbert) pointing all assets (vROPS request), I expect that when we have high memory consumption / use in vCenter there will be no balloon / compression / permutation.

    Also the metric active / request should not be used for all workloads (e.g. Java / DB), why is - this? I have not found the reason of this anywhere, only the fact.

    Other sources such as Mark Achtemichuk suggests using consumed/use, which is the opposite (Understanding Active Memory - VMware vSphere Blog - Articles VMware vSphere).

    So I thought I'll with active / demand as metric and ignoring the warnings inside of vCenter.

    But the last time we have fixed half of our group, we had consumed/high memory usage and the vCenter began to inflate, compress, and finally to Exchange. Not a lot but I had not expected that, because memory active was only a small percentage of consumed.

    Can someone explain to me why this happened and who is right on this issue.

    Kind regards

    jengl

    jengl I don't know if you asked the wrong question, or I give the wrong answer :-)

    It is always good to attach screenshots, background to the issues, and what exactly you are trying to solve.

    You wrote:

    So to summarize:

    -ESXi uses consume to decide when to start the recovery techniques of memory RAM

    -To rightsize VMs for RAM, you must use the counter inside the BONE, not active

    -If you do not want to commit too much RAM and have a lot of the balloon you should right-size your virtual machines or extend the RAM / buy additional servers

    Please correct me if I'm wrong.

    My answer: you are right. If you do not have access to the guest operating system, then Active VM and VM consumed are better guess. Better than nothing :-)

    Sizing sizing of VM and ESXi are 2 different things (2 use cases) different. Please don't mix up the as soon as they are confusing. Do not try to resize the virtual machine when you are sizing the ESXi, unless you have a control total on them.

    You wrote:

    The question for me is: how many cache (standby under Windows) inside the VM is really necessary for the virtual machine to get the best performance without wasting resources. Perhaps this issue can be resolved only by tests or do you know another option?

    My answer: it's a different topic brother :-) It is different, because it is within a guest operating system (Windows in this case) and is no longer at the level of the ESXi. Suggest that post you another, possibly under Windows or vSphere too :-)

  • What Controlfile to use for DBPITR?

    OK, here's the scenario, I have faced and want an idea. Thank you!

    It is Monday morning (26/10/2009) and I had a request to do a DBPITR to Saturday (24/10/2009) at 17:00. I've restored the full backup as well as the controlfile to 24/10/09 at 02:00 (which has a full backup for weekday from 23/10/09) and the newspapers and the controlfile for backup of 25/10/09 at 02:00 (a ball for Saturday). Should what controlfile I use for the restoration of RMAN (24 or 25)?

    I used the controlfile to backup 10/24 (issued [until time ' to_date (24 October 2009 17:00 "," mm/dd/yyyy hh24:mi:ss') ' ;]) and completed.]) Then I "restore archivelog all" and he read all the archivelog for 24, but does not seem to read a log file I have for 25, that data available for the 24. Should I have used the controlfile to 25 or y at - there a way to tell RMAN to search for the file that was not part of the backup set? Thank you.

    You need to restore a controlfile to before the PIT, then restore the archivelogs until the PIT, catalog them and recover.

    To restore the archivelogs either controlfile another who does not know the backup archivelog or a rman catalog. STANDS of restorations are easier with a rman catalog.

  • What do need me for when the sale of an iPhone that won't turn on in order to remove my information?

    What do need me for when the sale of an iPhone that won't turn on in order to remove my information?

    If it lights why if someone buy it?

Maybe you are looking for