+ operator used with Between

hi guru's
Could any one please enlighten me about this
i know that + is used for outer joins
can we use + operator with Between Operator and if so how it works
i have seen somewhere like this
and sysdate between tmo.start_date (+) and nvl(tmo.end_date (+),sysdate;
kindly clarify me
With Warm Regards
SSR

ssr wrote:
hi BluShadow
thanks for the reply ,
i tried what u have suggested the output was funny , it displayed all the departments name as if there are no employees at all
SQL> select d.deptno, d.dname, e.empno, e.hiredate
2 from dept d
3 ,emp e
4 where d.deptno = e.deptno (+)
5 and sysdate between e.hiredate(+) and e.hiredate(+)
6 /
DEPTNO DNAME EMPNO HIREDATE
10 ACCOUNTING
20 RESEARCH
30 SALES
40 OPERATIONS
can i presume , that the line which i pasted in my previous posting, is logically wrong ?No, it's not necessarily wrong.
The example I gave was just showing the syntax working... but the data is such that you won't get the employees for those departments because there are no employees with a hiredate that matches sysdate.
If we actually gave it a different range to search, we'd get some data...
SQL> ed
Wrote file afiedt.buf
  1  select d.deptno, d.dname, e.empno, e.hiredate
  2  from dept d
  3      ,emp e
  4  where d.deptno = e.deptno (+)
  5* and   sysdate between e.hiredate(+) and e.hiredate(+)+10000
SQL> /
    DEPTNO DNAME               EMPNO HIREDATE
        10 ACCOUNTING
        20 RESEARCH             7876 23-MAY-1987 00:00:00
        20 RESEARCH             7788 19-APR-1987 00:00:00
        30 SALES
        40 OPERATIONSwhich I think looks messy with all those + signs... so with ANSI syntax...
SQL> ed
Wrote file afiedt.buf
  1  select d.deptno, d.dname, e.empno, e.hiredate
  2  from dept d
  3       left outer join emp e on (e.deptno = d.deptno
  4*                            and sysdate between e.hiredate and e.hiredate+10000)
SQL> /
    DEPTNO DNAME               EMPNO HIREDATE
        10 ACCOUNTING
        20 RESEARCH             7876 23-MAY-1987 00:00:00
        20 RESEARCH             7788 19-APR-1987 00:00:00
        30 SALES
        40 OPERATIONS... it's clearer (to me at least) what's going on.

Similar Messages

  • Hey, I'm doing some cross browser testing and i want to know Is there any difference between the behavior of Firefox in an operating system 64bit & operating system with 32bit. (like windows7/windows vista...)

    ''duplicate of https://support.mozilla.com/en-US/questions/905881''
    Hey, I'm doing some cross browser testing and i want to know Is there any difference between the behavior of Firefox in an operating system 64bit & operating system with 32bit. (like windows7/windows vista...)

    Hi Kossa,
    You can also check if the issue occurs in
    Clean Boot. If the issue disappears in the Clean Boot environment, you can continue to narrow down which entry is causing the issue.
    Besides, uninstall it and re-download
    a fresh copy of FireFox to check the result. If the issue still exists, create a new user account to see if it occurs.
    If the issue persists, you can contact Mozilla Support directly and use Internet Explorer (IE) during the time.
    J
    Please Note: The third-party product discussed here is manufactured by a company that is independent of Microsoft. We make no warranty, implied or otherwise,
    regarding this product's performance or reliability.
    Regards,
    Linda

  • Can i set up my iPad and iPod to use iMessage between the two devices with the same Apple ID?

    Can i set up my iPad and iPod to use iMessage between the two devices with the same Apple ID? SO i could iMessage if out from my iPod to my iPad at home to be viewed by a family member?

    Look into using Apple Configurator.  It's the easiest way to "reimage" and Manage iPads that I know of right now. 
    http://itunes.apple.com/us/app/apple-configurator/id434433123?mt=12
    Also, look into using the Educational Volume Purchase Program, if you have not already done so. 
    http://www.apple.com/education/volume-purchase-program/

  • Is it possible to use Facetime between Mac and iPad with the same Apple ID?

    Hello,
    I have a MacBook Pro and an iPad. May MacBook is used by my wife and me at home. I take the Pad with me when I travel. On the MacBook I have and Apple ID registered. It is the same I use with the iPad. Do I need a differnt ID for my wife if we want to use Facetime? Or do I need to create a seperate user-profile for my wife on the MacBook?
    Thanks for your feedback in advance.

    Hi
    I use the same apple id for the same thing when i travel between myself and people at home over my iphone and the ipad i leave at home always seems to work of for me
    I normally just give it a little test before i leave each time by signing in of both devices and trying ringing myself
    Hope this helps

  • How can you use iMessage between 3 iPads with 3 different users but only one Apple ID?

    how can you use iMessage between 3 iPads with 3 different users but only one Apple ID?

    No you do not need separate Apple ID's in order to use 3 devices with one Apple ID. I use 4 devices to Message and FaceTime and all use the same Apple ID. You do need to add additional email addresses for the other devices.
    Look at this very informative video for the instructions.
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l

  • Number of elements that can be used with 'in' Operator

    One of my SQL query having 'in' operator failed saying number of elements exceed.
    Is there a limit on number of elements that can be used with - 'in' operator.
    And if yes can it be increased?

    Parag Kalra wrote:
    One of my SQL query having 'in' operator failed saying number of elements exceed.
    Is there a limit on number of elements that can be used with - 'in' operator.
    And if yes can it be increased?You cannot have more than 1000 literals in an IN clause.
    Please check
    ORA-01795, limit on in clause
    Max number of values in IN clause
    Edited by: Rajesh Lathwal on May 24, 2010 12:28 PM

  • [DC2] An net use or LsaPolicy operation failed with error 67 - Moving AD from 2003R2 to Server 2012

    Hello, i hope someone can help me with this tricky situation.
    The plan is to move AD from 2003R2 name "DC" to a server 2012 "DC2"
    I have made all the adjustments and transferred all the role to the new 2012 server, and both are now GC servers.
    The problem is "transferring" the netlogon share.
    in DCDIAg on the new server i get:
    Directory Server Diagnosis
    Performing initial setup:
       Trying to find home server...
       Home Server = DC2
       * Identified AD Forest. 
       Done gathering initial info.
    Doing initial required tests
       Testing server: Default-First-Site-Name\DC2
          Starting test: Connectivity
             ......................... DC2 passed test Connectivity
    Doing primary tests
       Testing server: Default-First-Site-Name\DC2
          Starting test: Advertising
             ......................... DC2 passed test Advertising
          Starting test: FrsEvent
             There are warning or error events within the last 24 hours after the
             SYSVOL has been shared.  Failing SYSVOL replication problems may cause
             Group Policy problems. 
             ......................... DC2 passed test FrsEvent
          Starting test: DFSREvent
             ......................... DC2 passed test DFSREvent
          Starting test: SysVolCheck
             ......................... DC2 passed test SysVolCheck
          Starting test: KccEvent
             ......................... DC2 passed test KccEvent
          Starting test: KnowsOfRoleHolders
             ......................... DC2 passed test KnowsOfRoleHolders
          Starting test: MachineAccount
             ......................... DC2 passed test MachineAccount
          Starting test: NCSecDesc
             ......................... DC2 passed test NCSecDesc
          Starting test: NetLogons
             Unable to connect to the NETLOGON share! (\\DC2\netlogon)
             [DC2] An net use or LsaPolicy operation failed with error 67,
             The network name cannot be found..
             ......................... DC2 failed test NetLogons
          Starting test: ObjectsReplicated
             ......................... DC2 passed test ObjectsReplicated
          Starting test: Replications
             ......................... DC2 passed test Replications
          Starting test: RidManager
             ......................... DC2 passed test RidManager
          Starting test: Services
                NtFrs Service is stopped on [DC2]
             ......................... DC2 failed test Services
          Starting test: SystemLog
             ......................... DC2 passed test SystemLog
          Starting test: VerifyReferences
             ......................... DC2 passed test VerifyReferences
       Running partition tests on : ForestDnsZones
          Starting test: CheckSDRefDom
             ......................... ForestDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... ForestDnsZones passed test
             CrossRefValidation
       Running partition tests on : DomainDnsZones
          Starting test: CheckSDRefDom
             ......................... DomainDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... DomainDnsZones passed test
             CrossRefValidation
       Running partition tests on : Schema
          Starting test: CheckSDRefDom
             ......................... Schema passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Schema passed test CrossRefValidation
       Running partition tests on : Configuration
          Starting test: CheckSDRefDom
             ......................... Configuration passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Configuration passed test CrossRefValidation
       Running partition tests on : dom1
          Starting test: CheckSDRefDom
             ......................... domain passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... domain passed test CrossRefValidation
       Running enterprise tests on : domain.xxxxx.no
          Starting test: LocatorCheck
             ......................... domain.xxxxx.no passed test LocatorCheck
          Starting test: Intersite
             ......................... domain.xxxx.no passed test Intersite
    I have as a last option the burflags issue, i tried this with the option D2, but i think i have done it wrong, because the netlogon share is gone on the old DC. i took a backup of the files and folders before
    i did this. http://support.microsoft.com/kb/290762/en-us But i am a little confused on which server i am going to set the D4 value on now? COuld someone help? Best regards Aksel

    Hello Dirk
    And thank you for your answer, in regards of the KB, do i have to follow the steps regarding:
    Global vs. replica set specific reinitialization
    You can locate the replica set specific
    BurFlags
    registry key by determining the GUID for the replica set that you want to configure. To determine which GUID
    corresponds to which replica set and configure a restore, follow these steps:
    Click Start, and then click Run.
    In the Open box, type cmd and then press ENTER.
    In the Command box, type net stop ntfrs.
    Click Start, and then click Run.
    In the Open box, type regedit and then press ENTER.
    To determine the GUID that represents the replica set that you want to configure, follow these steps:
    Locate the following key in the registry:
    KEY_LOCAL_MACHINE\System\CurrentControlSet\Services\NtFrs\Parameters\Replica Sets
    Below the Replica Sets subkey, there are one or more subkeys that are identified by a GUID. In the left pane, click the GUID, and then in the right
    pane note the Data that is listed for the Replica Set Root value. This file system path will indicate which replica set is represented by this GUID.
    Repeat step 4 for each GUID that is listed below the Replica Sets 
    And so on?
    I have only thos 2 DC's in the network...

  • Use Unchecked or unsafe operations: recompile with -Xlint

    hi all..
    I'm trying to create a GUI to select the necessary port to open. I got this code from JAVA cookbook:
    I'm using windows XP and JDK 1.6..
    import java.io.*;
    import javax.comm.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    public class PortChooser extends JDialog implements ItemListener {
    HashMap map = new HashMap();
    String selectedPortName;
    CommPortIdentifier selectedPortIdentifier;
    JComboBox serialPortsChoice;
    JComboBox parallelPortsChoice;
    JComboBox other;
    SerialPort ttya;
    JLabel choice;
    protected final int PAD = 5;
    public void itemStateChanged(ItemEvent e) {
    selectedPortName = (String)((JComboBox)e.getSource()).getSelectedItem();
    selectedPortIdentifier = (CommPortIdentifier)map.get(selectedPortName);
    choice.setText(selectedPortName);
    public String getSelectedName() {
    return selectedPortName;
    public CommPortIdentifier getSelectedIdentifier() {
    return selectedPortIdentifier;
    public static void main(String[] ap) {
    PortChooser c = new PortChooser(null);
    c.setVisible(true);// blocking wait
    System.out.println("You chose " + c.getSelectedName() +" (known by " + c.getSelectedIdentifier() + ").");
    System.exit(0);
    public PortChooser(JFrame parent) {
    super(parent, "Port Chooser", true);
    makeGUI();
    populate();
    finishGUI();
    protected void makeGUI() {
    Container cp = getContentPane();
    JPanel centerPanel = new JPanel();
    cp.add(BorderLayout.CENTER, centerPanel);
    centerPanel.setLayout(new GridLayout(0,2, PAD, PAD));
    centerPanel.add(new JLabel("Serial Ports", JLabel.RIGHT));
    serialPortsChoice = new JComboBox();
    centerPanel.add(serialPortsChoice);
    serialPortsChoice.setEnabled(false);
    centerPanel.add(new JLabel("Parallel Ports", JLabel.RIGHT));
    parallelPortsChoice = new JComboBox();
    centerPanel.add(parallelPortsChoice);
    parallelPortsChoice.setEnabled(false);
    centerPanel.add(new JLabel("Unknown Ports", JLabel.RIGHT));
    other = new JComboBox();
    centerPanel.add(other);
    other.setEnabled(false);
    centerPanel.add(new JLabel("Your choice:", JLabel.RIGHT));
    centerPanel.add(choice = new JLabel());
    JButton okButton;
    cp.add(BorderLayout.SOUTH, okButton = new JButton("OK"));
    okButton.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e) {
              PortChooser.this.dispose();
    /** Populate the ComboBoxes by asking the Java Communications API
    * what ports it has. Since the initial information comes from
    * a Properties file, it may not exactly reflect your hardware.
    protected void populate() {
    Enumeration pList = CommPortIdentifier.getPortIdentifiers();
    while (pList.hasMoreElements()) {
    CommPortIdentifier cpi = (CommPortIdentifier)pList.nextElement();
    // System.out.println("Port " + cpi.getName());
    map.put(cpi.getName(), cpi);
    if (cpi.getPortType() == CommPortIdentifier.PORT_SERIAL) {
    serialPortsChoice.setEnabled(true);
    serialPortsChoice.addItem(cpi.getName());
    else if (cpi.getPortType() == CommPortIdentifier.PORT_PARALLEL) {
    parallelPortsChoice.setEnabled(true);
    parallelPortsChoice.addItem(cpi.getName());
    else {
    other.setEnabled(true);
    other.addItem(cpi.getName());
    serialPortsChoice.setSelectedIndex(-1);
    parallelPortsChoice.setSelectedIndex(-1);
    protected void finishGUI() {
    serialPortsChoice.addItemListener(this);
    parallelPortsChoice.addItemListener(this);
    other.addItemListener(this);
    pack();
    //addWindowListener(new WindowCloser(this, true));
    }}When i compile this it says PortChooser.java uses unchecked or unsafe operation
    recompile with -Xlint(any one know what this is?)
    Is it the JDK version i'm using ? First i thought it's a security issue.As in windows is not letting me access the serial ports.
    I checked with device manager.My serial ports are open. Ichanged my BIOS settings as well..
    (I read inputs from parallel port.But i dont use the comm api for that)
    I have installed the rxtx gnu.io package as well..
    Tried import gnu.io.* instead of javax.comm.*; still the same compilatiion error!!!
    Thanks in advance
    goodnews:-(

    It is basically a warning (not an error) that the compiler gives you to let you know that you are using a raw type where Java now supports generic types.
    For example, in the code you use:
    HashMap where you can use HashMap<String,String> to let the compiler know that you intend inserting Strings for both the key and the value. The former is considered to be unsafe because the compiler cannot control what is inserted into the HashMap while in the latter case it can ensure that only Strings are used for both keys and values.
    The compiler is also letting you know that if you want to see the details of these "unsafe" operations you can use the -Xlint:unchecked option when compiling and the compiler will show you exactly which lines contain the code that is generating the warning. So to compile with this option you would use javac -Xlint:unchecked ClassToCompile.

  • Can the academic version of Photoshop CS 5 Extended be used with Windows 7 64 bit operating system?

    Can the academic version of Photoshop CS 5 Extended be used with Windows 7 64 bit operating system?

    Yes.
    Adobe - Photoshop CS5 Extended System Requirements

  • On certain web sites(with java applets embedded or rich content),sometimes browser hotkeys are beeing used with other functionality (eg.: youtube uses ctrl + tab for sliding between player controls).How can I prevent this?

    On certain web sites(with java applets embedded or rich content),sometimes browser hotkeys are beeing used with other functionality (eg.: youtube uses ctrl + tab for sliding between player controls).How can I prevent this ?

    Thanks for posting this!
    I would only mention that your definition is incomplete for this -
    Contextual selector A type of Style Sheet Selector that
    and that it's most often referred to now as a Descendent selector, not a contextual selector.  It's basically the same as the Compound selector that you have already defined....

  • HT203088 I have the CANON REBEL T5 1200D, and when i connect it to my mac which is 10.10 the new OS X YOSEMITE it says that it "Cannot be used with this version of the operating system" why does it say that?

    I have the CANON REBEL T5 1200D, and when i connect it to my mac which is 10.10 the new OS X YOSEMITE it says that it "Cannot be used with this version of the operating system" why does it say that if my camera is listed under the supported digital cameras for OS X YOSEMITE?

    Put simply, the minimum system requirements for iTunes have changed. You need a Mac running at least OS X 10.6.8.
    It's best you look online to see if your model of Mac can be upgraded to at least 10.6.8 "Snow Leopard". It should still be possible to order a copy of Snow Leopard if so.

  • Can we perform Join operation using SQLCall with Datatabae Query

    Hi,
    I am working on Toplink SQLCall query. I am performing join operation but, it is giving error.
    so please, any can tell me . we can perform join operation using SQLCall with Database Query
    Thanking You.

    You can use joining with SQLCall queries in TopLink, provided your SQL returns all of the required fields.
    What is the query you are executing and what error are you getting?

  • Can an Envy 7640 printer be used with a Google Chrome Operating system?

    Can an Envy 7640 printer be used with a Google Chrome Operating system?

    You are not going to find Chrome on the drop down list, there is no driver to install on chrome, as it doesn't support the concept of a device driver. The only way to print is using cloudprint.
    Cloudprint on a hp printer, means you get an email address for that printer by signing up for hp eprint.
    To sign up for hp eprint, simply touch the eprint icon on the printer's screen (that looks like a mobile device signaling a printer). This HP page has detailed steps: http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&docname=c04327805#N57
    ======================================================================================
    * I am an HP employee. *
    ** Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue. **
    ***Click on White “Kudos” STAR to say thanks!***

  • TS4006 when using iCloud between mac and pad, what does this mean - "your iPad will  no longer back up to your computer automatically when you sync with iTunes"

    when using iCloud between mac and pad, what does this mean - "your iPad will  no longer back up to your computer automatically when you sync with iTunes"
    DONT WORRY EVERYONE, FOUND THE ANSWER I NEEDED FROM ANOTHER POSTING - THANK YOU

    Welcome to the Apple Community.
    You don't need to do anything, you have chosen to back up to iCloud instead of iTunes.
    Being able to back up to the cloud can be very useful, especially if you don't have access to a computer or have infrequent access to one, however unless you specifically need to use iCloud for back up, you will find backing up to iTunes significantly more convenient and possibly more reliable.
    More about iCloud v iTunes Back Up

  • Hey, I'm doing some cross browser testing and i want to know Is there any difference between the behavior of Firefox in an operating system 64bit & operating system with 32bit. (like windows7/windows vista...) Thanks,

    Hey, I'm doing some cross browser testing and i want to know Is there any difference between the behavior of Firefox in an operating system 64bit & operating system with 32bit. (like windows7/windows vista...) Thanks,

    Hi O_H_I_O,
    Have you got an error code ?
    Considering it is a brand new machine ,please update the machines .To get a better performance of the machines ,we should always keep it up to date .
    There is a possibility that the DVD/CD-ROm drives driver is old or has corrupted .Please open the device manager , update or reinstall the driver to have a check.
    Apart from this ,we can run the built-in tool to a diagnostic :
    Control Panel\All Control Panel Items\Troubleshooting\All Categories\Hardware and Devices
    We also can run the following fixit tool to have a check.
    Fix problems with CD or DVD drives that can’t read or write media
    http://support.microsoft.com/mats/cd_dvd_drive_problems
    Best regards

Maybe you are looking for