files between 2 dates

Hi all

I have a table of caterpillars of date that contains effective_start_date and effective_end_date of fields where we have the start date and ends an employee. Each employee can have several records where the date of beginning and different ending.

Now, how can I find his records, that are active in the dates between January 1, 2007 ", January 1, 2008"

Thank you

PK

Well,.

In this case, it would be

select * from employees where
          (trunc(effective_start_date) >= to_date('01-JAN-2007','DD-MON-YYYY') ) OR

          (trunc(effective_end_date) <=
               to_date('01-JAN-2008','DD-MON-YYYY')  )

Arun-

Published by: joel Ramamoorthy on October 22, 2009 20:46
Lost dates :(

Published by: joel Ramamoorthy on October 22, 2009 20:54
It should be OR ' ed and not AND ' ed

Tags: Database

Similar Questions

  • Transfer of files between drives: data loss or corruption?

    1. Is there data loss or corruption during the transfer of files between disks in Windows 7?
    2. What about very large files, gigabytes in size?
    3. Is it possible to check if there is data loss or corruption?

    Creation and verification of a checksum is a file operation.  It doesn't matter where the files are stored.

    It doesn't matter if the source is a CD, a USB flash drive or a hard drive.  As much as the destination is concerned, if you write a large file on a CD, the possibility of error is greater if copy to a USB flash drive or an external hard drive.  Which is why you often see tips to burn at the slowest speed available when writing large critical files as an ISO installation file.

    The only difference between 'copy' and 'move' is this movement copies the file and automatically deletes the original.

    You want to make sure that the file copied correctly before the original has disappeared.  The way to ensure that is to perform a copy operation, check the integrity of the copied file and delete the original.

  • How to find the number of days between 2 date elements in the XSLT file

    Hello

    I need to calculate the number of days between 2 date elements (type xs: date). Can you please direct me as to how I can do the same thing.

    I work in 11g and using XSLT 1.0. I tried several options but yet to get a solution for this. I think that this can be done also using XSLT 2.0, but who has not worked for me.

    Can someone please help with this problem, thanks in advance!

    Thank you
    Anju

    Hello

    Have you seen this message?
    Re: Get the Date difference between 2 values of date in days

    You can do in the XSLT file since the dates are in ISO 8601 format.
    http://www.w3.org/TR/NOTE-datetime

    Here is a sample XSLT...

    
    
    
    
    
    
    
    

    The XSLT above will result in * 4 * for the next entry...

    
    2012-01-11T00:00:00.000-05:00
    2012-01-15T00:00:00.000-05:00
    
    

    You can test this example here...
    http://xslttest.appspot.com/

    I hope this helps...

    See you soon,.
    Vlad

    It is considered good etiquette to the answerers rewards with points (as "useful" - 5 pts - or 'correct' - 10pts)
    https://forums.Oracle.com/forums/Ann.jspa?annID=893

  • text of the file of digital data in columns (spaces between the columns) to the chart with an average every 500 columns values.please help.

    I have a text file with numeric data in three columns, (I need to spend the few lines of text in the file above the three columns of values of data first) then I need to convert numeric values above-"999" to zero, then take the average of each value of 500 in the first column (second and third colum requires the same operation separately) , so found average values should be stored in a text file and finally plotted in a graph separately. Help, please. Its part of my project work.

    Another version, simply drag and drop:

  • IX4 - 300 d - cannot copy files between actions or the ext disk. USB

    Hi forum!

    I can't work for the life of me how to move files between the shares on the NAS. I can access my computer fine actions. I have a USB HARD drive connected to the front USB port and I want to copy some files from the HARD drive to a shared folder on the NAS, but when I'm in the content browser that I have no option to copy, and there is no functionality of drag - move. That I going nuts or something blatantly obvious lack?

    I want to copy data from USB directly as it is a few TB of data and copying on the LAN will take ages. It's going to be a regular thing, but I can't really put in place a copy job, because it is not the same type of data or file locations every time.

    Help, please!

    Thank you!

    Matt

    Hello MattDobson,

    You will need to map the actions:
    https://www.Google.com/webhp?SourceID=chrome-instant&ion=1&ESPV=2&IE=UTF-8#q=how+to+map+a+network+sh...

    And move the data in this way, the Ext HDD will appear as its own share, but can be mapped as others.

    The content in the UI Viewer is not designed to move data.

    You can find documentation and downloads for the ix4 - 300 d here:
    https://Lenovo-na-en.custhelp.com/app/cust_alp/p/1189, 1193/session/L3RpbWUvMTQ0MDUyNTY3OS9zaWQvZWNDc...

    You can download the Storage Manager Lenovo via the link above, and which should help you to map actions.

  • In vista ultimate to transfer files between disks on the same computer.

    In vista ultimate, I can only transfer files computer-to-computer.  I have 2 hard drives and that you do not have another computer.  I already tried Windows Easy Transfer without success.  Please advise on how to transfer files between hard disks on the same computer

    I suggest you follow the procedure below and check if it works.

    1. Double-click the "My computer" icon on the desktop to open a new window to the Solution Explorer.
    2. Double-click the drive that contains the data you want to transfer.
    3. Find and select the files and folders you want to transfer. Select multiple items by pressing the 'Ctrl' key while clicking on the items.
    4. Click on the button "Edit" in the menu bar.
    5. If you want to make a copy of the data on the other hard drive, click on "copy". Click "Cut" If you want to move the data to the other hard drive.
    6. Double-click the "My Computer" on the desktop icon to open a new window to the Solution Explorer.
    7. Double-click the hard drive to which you want to transfer the data.
    8. Navigate to the folder where you want to place the data.
    9. Click on the button "Edit" in the menu bar.
    10. Click "Paste". Files and folders will be transferred to the current folder.
  • Cannot transfer files between multiple PCs.

    I have 4 PCs; One with Windows 7, two with Windows Vista and one with XP.  I want to be able to transfer files between all four of the PC.  90% of the time, the Windows 7 and Vista systems cannot see the XP system in their network lists in the file Explorer.  Very frustrating.  All the PCs are in the same workgroup.  All have their hard drive to allow others to share and change the permissions.  I is almost as if mother Microsoft won't allow that to happen.  GRRRR

    Everything good must be approached to this VERY annoying problem?

    Hello

    What antivirus/antispyware/security products on machines do you have? Be one you have NEVER
    had on them, including those you have uninstalled (they leave leftovers behind which can cause strange problems).

    Some of them can cause network problems and sometimes you need to uninstall one instead of just disable
    be able to catch him as the primary cause.

    ---------------------------------------

    Check with your router manufacturer's online help (most have excellent help) and their firmware on your router
    model - also check with their forums for possible known problems.

    ---------------------------------------

    Most of these problems is associated parameters and driver. Be careful with trailing spaces when you enter in the
    data. XXXX and xxxx_ are not the same (where the '_' represents a trailing space which is invisible). The best
    way you ensure to remove the spaces to the right is to enter data and then go back up to the last character. See #5
    below.

    ----------------------------------------------------------------------------------------------------------

    Follow these steps for all machines:

    It's my generic instructions for the correct driver updates: (you want mainly to update NETWORK and WiFi card drivers).

    This utility, it is easy see which versions are loaded:

    -Free - DriverView utility displays the list of all device drivers currently loaded on your system. For
    each driver in the list, additional useful information is displayed: load address of the driver, description,.
    version, product name, company that created the driver and more.
    http://www.NirSoft.NET/utils/DriverView.html

    For drivers, visit manufacturer of emergency system and of the manufacturer of the device that are the most common.
    Control Panel - Device Manager - Display Adapter - note the brand and complete model of your
    video card - double - tab of the driver - write version information. Now click on UPdate Driver (this
    cannot do anything as MS is far behind the certification of drivers) - then do a right click - Uninstall - REBOOT
    This will refresh the driver stack.

    Repeat this for network - card (NIC), Wifi network, sound, mouse, and keyboard if 3rd party with their
    own the software and drivers and all other main drivers that you have.

    Now go to the site of the manufacturer of system (Dell, HP, Toshiba as examples) (restoration) and then of the manufacturer of the device
    (Realtek, Intel, Nvidia, ATI, for example) and get their latest versions. (Look for the BIOS, Chipset and software)
    updates on the site of the manufacturer of the system here.)

    Download - SAVE - go to where you put them - right click - RUN AD ADMIN - REBOOT after each installation.

    Always check in the Device Manager - tab drivers version you install actually shows up. This
    because some restore drivers before the most recent is installed (particularly that audio drivers) so install a
    pilot - reboot - check that it is installed and repeat if necessary.

    Repeat to the manufacturers - BTW on device at the DO NOT RUN THEIR SCANNER - manually check by model.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    How to install a device driver in Vista Device Manager
    http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.html

    If you update the drivers manually, then it's a good idea to disable the facilities of driver in the Windows updates,
    This leaves ONE of Windows updates, but it will not install the drivers who are generally older and cause
    questions. If updates offers a new driver and then hide it (right click on it) and then go look for new ones
    manually if you wish.

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

    =========================================

    Leave a message from Bob Cerelli:

    The bases for troubleshooting are:

    1. make sure that you have the same (e.g., 192.168.0.x) intellectual property regime.

    2 make sure you have the same mask subnet, gateway, and DNS IP addresses.

    3. make sure you can ping the IP address of the other computer. Failure, just to test, make sure that you disable XP as well as any other firewall.

    4. make sure that you can test other computers by name.

    5. make sure that you have the same workgroup name (note the spaces)

    6. for purposes of troubleshooting, turn off XP and completely uninstall any other firewall software. You can always add more complexity once get you it working.

    7 with XP, make sure you have the same user name and password that the person by connecting to other computers. The default setting for XP Pro is to require a password for network access.

    8. more than details about how to network XP can be found at:

    WindowsXP - LAN
    http://www.onecomputerguy.com/Networking/xp_network.htm

    9. information on how to network Vista is located at:

    Vista - LAN
    http://www.onecomputerguy.com/Networking/vista_network.htm

    Vista network and sharing Center
    http://www.onecomputerguy.com/Networking/vista_network_sharing_center.htm

    =========================================

    More help on these sites:

    Setting up a network home
    http://Windows.Microsoft.com/en-us/Windows-Vista/setting-up-a-home-network

    Home network, wireless network and computer networking Made Easy
    http://www.home-network-help.com/

    Windows Vista tip: How to install and connect to a wireless network
    http://www.watchingthenet.com/Windows-Vista-tip-how-to-Setup-and-connect-to-a-wireless-network.html

    101 home computer networks
    http://compnetworking.about.com/cs/homenetworking/a/homenetguide.htm

    Practically networked - everything you could possibly want to know.
    http://www.practicallynetworked.com/

    I hope this helps.

    Rob - bicycle - Mark Twain said it is good.

  • Copying files between hard drives problem

    Hello

    I have problems copying files between hard drives on my computer. I was having this problem on Windows 7 and Windows Vista, but never met him on XP.  It seems that there are several similar topics, but I think I've noticed a few oddities in my own experience...

    I have several drives, between 500 GB ~ 1 TB.  Problems arise when I try to copy a folder with a large number of files (pictures, records about 4 GB in size, typically).  Initially, the transfer rate would be HD burst speed, somewhere between 90 MB to 150 MB.  Speed would be reduced to about 30 MB, or even lower.  The transfer ends by becomes so slow that the operation would take hours to complete.  If I try to cancel, it would take minutes to do.  The computer run slowly for a long period of time, with an offset of intermittent until I have to reboot the system.  This occurs regardless the source and destination drives.

    On some Samsung drives, this problem is actually lead to the corruption of data on the source and destination drives and i/o error messages.  CHKDSK runs at startup, try to solve the problem, but the data would be lost or unreadable disc.  I have since thrown the Samsung WD drives, do not have IO error, but the file copy problem persists.  I also disabled chkdsk at startup for all readers.

    My drivers and Bios are up-to-date.  Computer is free of viruses and malware.  I have no more trouble with Windows 7.  Curiously, if I compress my folders/files in one RAR file, I have no problems copying (transfer rate remains stable at 30 ~ 50MB).  This leads me to believe that this is not a hardware problem, but a problem with the Explorer of solutions, and that respect more particularly with the number of files transferred rather than size.  (But unpacking these files also lead to poor performance sometimes...)

    Is this a known issue that will be corrected?  I really like Win7, but because I work with large number of files and many backups all the time, stability during the file copying is a must.  I have perhaps to go back to XP, or use another OS entirely...

    I had the same problem;

    My system-

    Windows 7 Pro 64
    Core i7 940
    7200 RPM dual 500 GB SATA
    Gigabit ethernet

    Gigabit ethernet switch
    Gigabit router

    Buffalo NAS 1 TB, RAID 0, Gigabit Ethernet

    -----

    I was getting speeds of transfer of a maximum of 500 / 600 KB/s between the hard drive and network storage drive. I went through a number of * fixed * on the web without success, however, I disabled "TCP AutoTuning" and "RSS" rebooted and voila, I now get speeds of transfer of 9-10 MB / s and from the network drive.

    The fix
    It should be noted that, in addition to this, I have updated to the latest updates for Windows and off the DRC in the Windows Options under programs/features.

    How to disable TCP AutoTuning and receive scalability side

    1. Open a prompt with administrator rights.
    2. Type the following commands, and press enter (the second command on RSS is optional):

      netsh interface tcp set global autotuninglevel = disabled
      netsh interface tcp set global rss = off

    3. Restart the computer.

    ----------------------------------
  • How can I share files between Windows 7 Pro and a Mac with os x?

    I have Windows 7 Professional and my colleague had a Mac with os x installed. We are physically in the same room, sharing a wifi connection. How to share files between two computers? That each of them should do on his computer?

    If you display links, please check beforehand that the procedure for the mac is here. I found in the internet or other of the procedures for older systems Win or network only between Win 7 PCs.

    MOSH

    Of course, you can do it easily. In fact, the implementation of sharing on Win7 last month was almost as easy as it is on OS X.  ;-) I find that the snow leopard has the same bugginess of show Windows machines only randomly in the sharing of the Finder section, as it did in Leopard, however. I usually connect to Windows machines by opening a window of Finder and using go > connect to server > smb://Windows-computer-name instead. In the Win7 box, I have the network to the desktop icon (you can get this to customize > change icon).

    On OS X, make sure you have checked in the file sharing system preferences > sharing. Click the Options button, and then select "share files and folders using SMB." Add the shared directories as you wish.

    You must create accounts/passwords user on the Mac and Windows 7. You do not need to be logged into the same account on all machines and assigned to each user account passwords can be different; accounts/passwords just need to exist and to match on all machines. DO NOT NEGLECT TO CREATE PASSWORDS, EVEN IF ONLY OF SIMPLE. If you want a machine to boot directly to the desktop in Win7 (a particular user account) for convenience, you can do this.

    Start > Search box > type: netplwiz [Enter]
    Click continue (or provide an administrator password) when you are prompted by UAC

    Uncheck "users must enter a user name and password to use this computer". Select a user account to connect automatically by clicking on the account you want to highlight and press OK. Enter the password for this user account (when it exists) when you are prompted. Leave blank if there is no password (null).

    You can find options to logon automatically for OS X in system preferences > accounts.

    On Win7, go to control panel > all items in Control Panel > network and sharing Center. Click on "change the advanced sharing settings. You do not want to use Homegroup.

    Discovery of plug in the network
    Open the files and printers sharing
    Turn on the sharing section Public folder sharing
    Plug the password protected sharing

    Configure the firewall on all machines to allow traffic to local area network (LAN) as being approved. With the Windows Firewall, Configuration File and Printer Sharing ON will take care of that for these machines, and if you are not running a third-party firewall or you have an antivirus/security with its own firewall component program, then you're fine.  With a third-party firewall, I usually set up the allocation of LAN with an IP address range. E.g. would be 192.168.1.0 - 192.168.1.254. Obviously you would substitute your correct subnet. Refer to the safety of any third party program or the user forums for how to correctly configure its firewall. Do not run more than one firewall. DON'T STOP FIREWALLS; CONFIGURE THEM CORRECTLY.

    OS X Firewall is done in System Preferences > Security. Click the lock to make changes, and then click the Advanced button to ensure that SMB sharing is allowed. If you set up in the share pod, it will be.

    On Win7, create shares as desired. I usually just share the Public, users desktop folder and all hard drives of additional data in the system. MS - MVP - Elephant Boy computers - don't panic!

  • Find Dates between 2 dates

    Hi all

    I use SOASuite 11 g. Using XSLT, I want to find some dates between 2 dates

    For example, if I input 01-02-2016 and 2016-02-07


    The XSLT must return

    2016-02-01,.

    2016-02-02,.

    2016 02-03,

    2016 02-04,

    2016 02-05,

    2016 02-06,

    2016 02-07


    can someone suggest me how to build this logic in the xslt file?


    Thank you

    (1) fn:days - of-life feature gives you the difference in days between two dates.

    (2) use the value above in the foreach loop and then create a counter variable and map it to element position().

    (3) now use this counter variable in the Sub method within the loop for.

    xs:date(fromdate) + xs:dayTimeDuration(concat('P',$counter,'D'))

    (4) you can now print this value (or) copy it to a repetitive Xml structure element. When copying, you can use the $counter as an index for the repetitive element of the target.

    Now if you want including and to the dates too, then add 1 to the output in step 1 and step 3 use $counter - 1 in xs:dayTimeDuration.

    It will be useful.

  • transfer files between windows xp to windows computers using Easy Transfer 8

    Original title: transfer files between computers windows xp to windows 8

    read the easy transfer method is best, but do not know if it will work moving from xp to windows 8?

    Hello

    According to the description, I understand that you want to use Easy Transfer to transfer form data Windows XP to Windows 8.

    Yes, you can use Easy Transfer to transfer data from one computer to another computer.

    Please refer to the suggestion given by SpiritX MS MVP responded on 29 December 2012 on the following thread mentioned below to check if his help.

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_8-Winapps/how-do-i-tranfer-files-from-XP-to-Windows-8/42d395f0-0A4E-468d-8c2d-5088178a6d6d

    Hope this information is useful, if the problem persists please write us back with the quick information so that we can help you further.

  • How to share files between Windows 7, Windows 8, Windows 8.1 program technical preview 10 Quad-starting Windows

    Tips for sharing files between multiple versions of windows program without having to reinstall the programs? Any responses appreciated.

    There is no way to share programs/apps between OS when multi boot, IE; you can not install MS Office on W10TP and expect to use on other operating systems, you can share the data in the program, each operating system will require that individual programs / applications are installed on each operating system.

  • Months between two dates

    Hello

    I have two dates. start date and end date.

    I want to extract months between two dates

    months should be as

    JAN

    FEB

    MAR

    for example.

    Start - 1-jan-2014

    date of end - 31 - dec - 2014

    How can I do this?

    Thanks and greetings

    CORINE

    You should always use the function MONTHS_BETWEEN...

    for example

    SQL > ed
    A written file afiedt.buf

    1 with t as (select date '' 2014-01-01 as start_date date ' 2014-12-31' as double end_date)
    2  --
    3 end of test data
    4  --
    5. Select to_char (add_months (start_date, rownum-1), 'My') by month
    6 t
    7 * connect by rownum<=>
    SQL > /.

    LUN
    ---
    Jan
    Feb
    Mar
    Apr
    May
    Jun
    Jul
    Aug
    Ms
    Oct
    Nov
    Dec

    12 selected lines.

    And if you want that they display, separated by commas...

    SQL > ed
    A written file afiedt.buf

    1 with t as (select date '' 2014-01-01 as start_date date ' 2014-12-31' as double end_date)
    2  --
    3 end of test data
    4  --
    5 Select listagg (to_char (add_months (start_date, rownum-1), 'My'), ',') group by month (order by rownum)
    6 t
    7 * connect by rownum<=>
    SQL > /.

    MONTH
    -----------------------------------------------------------------------------------------------------------------
    Jan, Feb, Mar, Apr, may, June, July, August, Sept, Oct, Nov, Dec

  • Not possible to export a list of virtual machines that are created in the past 7, 30, 120 and 180 days since an imported csv file containing the date of creation of virtual machine

    Not possible to export a list of virtual machines that are created in the past 7, 30, 120 and 180 days since an imported csv file containing the date of creation of virtual machine. My questions is the correct statement to the variable: $VmCreated7DaysAgo: $_CreatedOn "-lt" $CDate7.

    # #SCRIPT_START

    $file = "C:\Users\Admin\Documents\WindowsPowerShell\08-18-2014\VM-Repo.csv".

    $Import = import-csv $file

    $VMCreatedLast7RDayRepoFile = "C:\Users\Admin\Documents\WindowsPowerShell\08-18-2014\Last7Days.csv".

    $start7 = (get-Date). AddMonths(-1)

    $CDate7 = $start7. ToString('MM/dd/yyyy')

    $VmCreated7DaysAgo = $Import | Select-object - property name, Powerstate, vCenter, VMHost, Cluster, file, Application, CreatedBy, CreatedOn, NumCpu, MemoryGB | Where-Object {$_.} CreatedOn - lt $CDate7} | Sort-Object CreatedOn

    $TotalVmCreated7DaysAgo = $VmCreated7DaysAgo.count

    $VmCreated7DaysAgo | Export-Csv-path $VMCreatedLast7RDayRepoFile - NoTypeInformation - UseCulture

    Write-Host "$TotalVmCreated7DaysAgo VMs created in 7 days" - BackgroundColor Magenta

    Invoke-Item $VMCreatedLast7RDayRepoFile

    # #SCRIPT_END

    You can use the New-Timespan cmdlet in the Where clause, it returns the time difference between 2 DateTime objects.

    An example of this cmdley

    New-TimeSpan-start (Get-Date). AddDays(-7)-end (Get-Date). Select days - ExpandProperty

    In your case, you could do

    Where {(New Timespan-démarrer ([DateTime] $_.))} CreatedOn) - end $start7). {7 days - gt}

    But beware of negative numbers.

  • Used to properly synchronize my files between my Macbook Pro and iMac.

    Used to properly synchronize my files between my Macbook Pro and iMac. Ive toggled the function of auto-sync, made sure the file names are correctly built, etc.. It is to show the red on all the files on the Pro, but showing the Green controls on the iMac. Any ideas?

    Hello

    We would need to see your files of newspapers of these two machines.

    Newspapers are located in

    Mac:

    The log file can be found here:

    /Users//Library/Application Support/Adobe/CoreSyncSync/CoreSync-YYYY-MM-DD.log

    (where YYYY-MM-DD indicate the date of the last log)

    Note: The user of library users folder is hidden at startup with 10.7 or higher

    See http://helpx.adobe.com/x-productkb/global/access-hidden-user-library-files.html

    Windows:

    The log file can be found here:

    C:\Users\\AppData\Roaming\CoreSync\CoreSync-YYYY-MM-DD.log

    (where YYYY-MM-DD indicate the date of the last log)

    Note: The AppData folder is hidden by default this doc shows how to show if necessary

    http://helpx.Adobe.com/x-productkb/global/show-hidden-files-folders-extensions.html

    Please the zip and send them to [email protected]

    Thank you

    Warner

Maybe you are looking for