How to change the path for the clause "where" with TIPS?

I tried a loooot of positions and you have not found a solution for my case. I don't even know if it of possible or not. Is it possible to change the sequence of Oracle "Predicate Information"?

Here is the my SQL and Oracle execution plan.
  SELECT Max(logId) AS logId FROM online_users_t 
  WHERE online_users_date >= to_date('2011-09-19 10:00:00') - 3.2 AND online_users_date <= to_date('2011-09-19 10:00:00') AND online_users_result in (1, -1)
  GROUP BY online_users_user

---------------------------------------------------------------------------------------------------
| Id  | Operation                    | Name               | Rows  | Bytes | Cost (%CPU)| Time     |
---------------------------------------------------------------------------------------------------
|   0 | SELECT STATEMENT             |                    | 24800 |   629K|  1336   (1)| 00:00:17 |
|   1 |  HASH GROUP BY               |                    | 24800 |   629K|  1336   (1)| 00:00:17 |
|*  2 |   TABLE ACCESS BY INDEX ROWID| ONLINE_USERS_T     | 38833 |   985K|  1334   (1)| 00:00:17 |
|*  3 |    INDEX RANGE SCAN          | ONLINE_USERS_T_IDX |   116K|       |   313   (1)| 00:00:04 |
---------------------------------------------------------------------------------------------------
Predicate Information (identified by operation id):
---------------------------------------------------
 
   2 - filter("ONLINE_USERS_RESULT"=(-1) OR "ONLINE_USERS_RESULT"=1)
   3 - access("ONLINE_USERS_DATE">=TO_DATE(' 2011-09-16 05:12:00', 'syyyy-mm-dd 
              hh24:mi:ss') AND "ONLINE_USERS_DATE"<=TO_DATE(' 2011-09-19 10:00:00', 'syyyy-mm-dd 
              hh24:mi:ss'))
I have 2 terms in my article 'where' one is the date range, and the other is ' online_users_result in (1, -1)'. It seems that the Oracle filter the table using the ' online_users_result in (1, -1)' first of all, then access it by date range.

What I want to do first is the table of filtering by using the range of dates followed by other things. How can I do?

Any ideas or help would be very appreciated.


Thanks in advance.

It seems that the Oracle filter the table using the ' online_users_result in (1, -1)' first of all, then access it by date range.

No it's not.

What I want to do first is the table of filtering by using the range of dates followed by other things. How can I do?

It is precisely what he does now.
It uses the T_IDX index to quickly find all the lines meet the predicate of beach on the date column.
And then to filter the lines to retrieve only those responding to the predicate else (... in (1, -1)).

Tags: Database

Similar Questions

  • How to change the location where the scan of the computer updates the file?

    I would like to know how to change the location where the scan updates the file.

    HI ROT2,.

    It depends what printer and the software you use?

    Normally, you will find a 'save to file Option save' like the screenshot below.

  • Change the clause where in a datablock

    I want to change the clause where in a datablock shaped 10g
    I want that to_date(champdb,'dd/mm/yyyy') =: champforms
    I do
    set_block_property ('filling', DEFAULT_WHERE, 'to_date(dateplomb,'dd/mm/yyyy') = decode(:dateplombage,null,DATEPLOMB,'||:dateplombage||')');
    set_block_property('plombage',DEFAULT_WHERE , 'trunc(dateplomb) = decode(:dateplombage, null , trunc(dateplomb),:dateplombage)');
    
  • How to change the directory where the files are placed in other applications to access?

    ESR running on Centos (RedHat) 5 & 6. Because of the way my system is set up, I would change where Firefox updates a file when they need to be accessed by another application (for example, a .doc file). The default is to place them in / tmp, which works for most people, but does not work in my particular installation. (Among the programs that I use to read some files are actually on another computer, but can be started automatically from the computer, I'm browsing). I need to place these files in a network directory, so that the other computer can see.

    I looked into: config, but can't find anything pointing to/tmp. I hope that it is one of these "add a new line to about: config ' things that are supposed to be (from bones), but can be changed if necessary.

    Thank you
    Ted Miller

    You probably can make only by changing the variable of environment TMPDIR = / tmp to point to this network drive.

    You can start Firefox via a script file if you want to do this for all applications.

    #!/bin/sh
    
    export TMPDIR=<path to tmp directory>
    cd <path to Firefox>
    ./firefox
    
  • How to change the mac address with a mac myself?

    Hello

    I need help to change the MAC address of one of my VM in a configuration.

    I need it because I need to do some testing on a program and the program's tie to the MAC address.

    I see how to reset the MAC, but not how set one I want... could someone help me with this.

    Lafa91

    BTW I have french speaking first of all sorry in advance for my bad English.

    Lafa im not very familiar with labmana. but the alternative is that you change your MAC address in the guest NETWORK adapter settings OS

  • How to change the drive letter with installed applications?

    My window is installed on the C: drive, and the application is installed on the D: drive,

    I just buy a new HARD drive and put it into drive E:, everything is copied from drive D: to E: drive and want to switch between the letter D: and E:.

    I tried to put in DISKPART, but when I restart my XP, the drive letter remains the same,

    If I change the drive letter directly in XP, it cannot be changed, because the applications are running.

    Does anyone have any suggestions?

    Thanks in advance for your suggestions

    Make sure any DVD/CD or USB keys are not connected or set F assignments or beyond (MY DVD is S & T).

    Shut down the computer; power off. Disconnect the old drive (now D). Connect the new drive (now a copy of the old D). Power and boot to the desktop. Go into disk management and make sure the drive that contains Windows, the original C drive is always c. assign the new drive as D. Reboot the desktop. Check operation.

    Shut down the computer; power off. Plug the old drive. Restart the desktop computer. Enter Disk Management and assign it to E.

    Restart, then check the operation.

    Tom Ferguson

  • How to change the Total report with a different name

    Hello

    I have a report and the last line display total report (using default apex - check check sum).

    My last appear as follows: full report | 10. 20. 30. 2 ¾ 100

    What I want to do is to change the name of 'total report' "Grand Total" or something else of my taste. Is - it there anyway that I can can be achieved. Any help would be appreciated.

    Thank you

    Matt

    On the report attributes tab, find the section break, formatting is a text box labeled: view this text when you print the report amounts, you can enter your text to replace the total report...

    Thank you

    Tony Miller
    Webster, TX

  • How to change the value returned with. by SQL / PL/SQL function

    I found on the community service of coracle that rounds and add the zeros to the right if necessary to dynamically add zeros to the right but the result is returned in constains format. Te 999.99 but I need to get 999.99, how do I solve this problem

    Modify the function to replace the. characters in, character.  Look at the function of string to replace oracle: REPLACE

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

  • Change the icons associated with files - it is still possible; It was child's play.

    How can I change the icon associated with a file? For example, if I change the default program for an .ini file, the default icon of a page with a gear in the corner becomes a simple page and I'd rather the icon does not change... just the program I use to open the file. In the previous veersions of Windows, if you want to change the icon associated with a file, you could simply enter properties and continue. Please advise on how to adopt this change of WinVista Home Premium.

    It is not easy and involves editing the registry (this is far from as easy it was XP, that's why you're having trouble).  Here is the procedure: http://www.webtlk.com/2009/03/20/how-to-change-the-icon-assiciated-with-a-file-in-windows-vista-and-windows-7/.  I recommend before starting that you back up your registry database just to be safe.  Here's how: http://www.adamsdvds.co.uk/tutorials/vista/regedit/backup.php.

    I hope this helps.

    Good luck! 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.

  • How to change the default path for documents and settings

    How to change the default path for documents and settings

    I try to change in the registry, but the profile can create but error! had no choice to change the default path % lecteur_systeme % d: /.

    Hello

    I suggest you to download TweakUI, this could help you or get you headed in the right direction
    http://Windows.Microsoft.com/en-us/Windows/downloads/Windows-XP

    Also this KB could help as well:
    http://support.Microsoft.com/kb/236621

    It will be useful.

  • How to change the number of minutes for the exercise of the activity of the application

    How to change the number of minutes for the exercise of the activity of the application

    Hello

    It is not currently possible to change the goal of daily exercise.

    If you want to suggest that Apple consider adding this option, you can submit a request here:

    https://www.Apple.com/feedback/watch.html

  • Office jet Pro 8600: how to change the folder for the scans on my Apple?

    Hi, I want to know how to change the destination for my scans folder when I scan from the printer.  Currently, the scans go to "documents", and I want him to be in a business case.  Clues?  I tried to watch some instructions on the previous posts, but it seems that they are for windows.

    Thanks for the help!

    Hi @jgossc,

    I'd be happy to help you change your scan destination. I understand that when you scan your Officejet Pro 8600 to your Mac, the file analysis is currently underway to your documents and want to let them instead to a business case.

    To change the destination please follow the steps below and let me know the results of your efforts:

    • Open HP utility
    • Select Scan to the computer
    • Click Scan tasks to change
    • Choose a shortcut to scan
    • Select Edition
    • In the options listed here, you should see scan destination

    If this resolves the issue, please click Accept as Solution button below; If not, let me know and I will do everything I can to help. Thank you.

  • How to change the password for Jabber (XMPP) in Messages.app?

    My understanding of the functioning of the Jabber (XMPP) is that the password take place in the email client. I am aware of how to change my password to Jabber via like Adium instant messaging clients, but I prefer to use the built-in client of Messages.app. What I can't understand, however, is how to change my password for the Jabber using Messages.app.

    → Anyone know: Messages.app can be used to change a password account Jabber? ←

    Thanks in advance!

    Hello

    Yes I know.

    Oh, you asked me to tell you?

    Open messages

    Use the App menu > Preferences > accounts.

    Select the Jabber account.

    Uncheck the "enable this account".

    The account is now disconnected.

    You should be able to type in the password box now.

    Just type on the old highlighting and typing.

    EDIT.

    I just read that another way.

    The messages may not make the change to the password at the server end.

    Because you advice I just gave you instructions on how to change the password in the application rather than using the application to change the password on the server.

    Google (who run a Jabber server) can be done online in the account settings (it also changes it for the mail if you use it in Mail as well.)

    Same thing for Facebook Chat (it's also a Jabber server)

    Most of the other servers will have a web page method to do.

    20:07 on Monday. 30 November 2015

     iMac 2.5 Ghz i5 2011 (Mavericks) 10.9
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro (Snow Leopard 10.6.8) 2 GB
     Mac OS X (10.6.8).
     a few iPhones and an iPad

  • How to change the product key for Office 2007?

    Original title: product key used.

    When I loaded Office 2007 I used a product key with any additional use.  I try to enter a different product key, but impossible to find how to do this.  Can you please direct me to the correct site to do this?  Thank you!

    Hello

    It would be easier to uninstall it and then reinstall it by using the different product key.

  • How to change the rendering used for video playback in Windows Media Center Version 6 engine

    I usually use other media players, but I would like to first of all using Windows Media Center. However for the moment video playback is not good because of the weird colors (everything is displayed in black and Red instead of normal colors). When you use other media players, I use the Haali rendering engine which gives good results for video playback.

    Can you tell me how to change the rendering used by Windows Media Center?

    Also, I noticed the same weird color effect in Windows Media Player 11.

    Hi Woobee,

    1. What is the brand and model of the computer?

    2. what graphics card use on the computer?

    If you are using an Nvidia graphics card on the computer, in the Nvidia Desktop Manager, you will find an option for saturation to ensure it is set to 100%.

    And if you are any other graphics card on the computer and search for a similar option for saturation.

    If the previous step fails in Windows media player, so be sure that the hue and Saturation are defined by default.

    1. click on the arrow on the tabplaying , point to enhancements, and then clickcolor picker.

    2. do one of the following:

    1. to return to the default color, click thereset link.

    Also, make sure that the video settings are set by default.

    1. start the playback of a file.

    2. click on the arrow on the tabplaying , point to improvements, and then clickvideo settings.

    3. click onreset.

    Check also in Windows Media Center if the

    1. on theStart screen, go to tasks, click settings, clickgeneral, then Visual and sound effects.

    2. undercolors ensure that Windows media center standard is enabled.

    Turn off Visual and sound effects in Windows Media Center

    http://Windows.Microsoft.com/en-us/Windows-Vista/turn-off-Visual-and-sound-effects-in-Windows-Media-Center

    I hope this helps!

    Halima S - Microsoft technical support.

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

Maybe you are looking for

  • Y at - there a big difference between the base of the m3 and m5 models?

    I had my m3 2016 Macbook for a week so just thought I would ask so that I have time to exchange it if need be. I wondered outside storage space, y at - it a big difference in processors Core of m3 and m5? Apple uses a "customized" version of the proc

  • How to get rid of pop-up ads

    I get a pop-up ad on my iPhone asking me to click OK to confirm that I own this phone to receive a £500 voucher for Tesco Stores possible. Please how to set my phone to block ads in general. I tried to reset advertisement in settings. Thanksl

  • I do not trust the pop-up that wants to connect get the latest updates

    My password has been published on the internet and I had to change it. Now, I want to get the latest updates to Windows Live parental controls but I do not trust the pop up enough to give my new password.  Security Essentials says my own PC. This pop

  • When I start the game requires graphics hardware acceleration

    I have Intel (r) 82945G Express Chipset Family Microsoft Windows XP Professional Version 2002 Service Pack 2 (32-bit) v.2096 Genuine Intel(r) CPU 2140 @ 1.60 GHz 760 MB of RAM Physical address extension Very well with all the games these days, but wh

  • Pavillion DV-2001TX: I can not find the diver of the multimedia controller

    I can't find a driver for the multimedia controller on Win 7 64 bit for a HP Pavilion dv6-2001tx.  The information I have in Device Manager are: "Multimedia controller". Type of device: other devices Manufacturer: unknown Location: PCI Bus 4, device