TRUNC (date) want to make sure that I didn't miss something here!

My query is due to go live to production, where it will run on all SUNDAYS in BI software to pick up the report based on the latest data of a week (Sunday last to last Saturday). For example, the query executed on September 29, 2013 "go get the report based on data from September 22, 2013 00:00:00 ' until September 28, 2013 23:59:59 '.

I replaced the date code of irreversibly with the following text:

-to test on my terminal: closed_date > = to_date('09/22/2013','MM/DD/YYYY') AND closed_date < (to_date (' 09/28/2013 ',' MM/DD/YYYY') + '1'-DAY interval)

-replaced by the EC on production: closed_date > = closed_date TRUNC(sysdate-7) AND < (TRUNC(sysdate-1) + '1'-DAY interval)

I want to just make sure I missed not anything here!

Hello

What you have posted will get data from the last 7 days, not including today, so if we do run on Sunday, September 29, it will get the data from the previous Sunday (22 September) through yesterday (28 September) inclusive.

What happens if you need to run late?  For example, if the system is shut down on Sunday, and you need the report Monday?  If you run this query on Monday, September 30, it will include data from Monday, September 23 and Sunday, September 29.  You may not care about this possibility, or it is maybe exactly what you want, but if you want something that is committed to get the week Sunday - through-Saturday last, use

WHERE closed_date > = TRUNC (SYSDATE + 1, 'IW') - 8

AND closed_date<  trunc="" (sysdate="" +="" 1,="" 'iw')="" -="">

It's including Sunday, Sept. 22 to Saturday September 28 when its run anytime during the week of Sunday, September 29 Saturday, October 5.

It's not you NLS parameters.

Tags: Database

Similar Questions

  • Hello, just want to make sure that my membership has been renewed. Thank you.

    Hello, just want to make sure that my membership has been renewed. Thank you.

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help
    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific time) <===> NOTE DAYS AND TIME
    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)
    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

    or

    Your subscription to cloud appears on your account page?

    https://www.adobe.com/account.html for subscriptions on your page from Adobe

  • My computer is fried. I want to make sure that I can install the Creative Suite 3 on the new computer I buy.

    My computer is fried. I want to make sure that I can install the Creative Suite 3 on the new computer I buy. I plan to get the same computer as before, a Mac 10.4.11 Tower installed on it.

    Thank you!

    If same os, not a problem.  (though you might need an activation count reset if you will exceed your two activations.)

    If you need installation files

    Downloads available:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

    window using the Lightroom 3 link to see these "important Instructions".

  • I am moving to a new computer and want to make sure that my Creative Suite transfers correctly.

    I get a new iMac and I have all my info my CS5 license. We use the Migration Assistant to transfer via, and I also have a Time Machine backup of my existing iMac. My question is, what do I have to uninstall on my old machine and reinstall on the new licensing, etc. to walk... or Migration assistant will be fine transfer on? I want to just make sure that I have no problem with my CS5 on the new machine.

    Migration undoubtedly will cause, at least, some significant problems.

    If you do not plan to use cs5 on your old computer, you need to open one of the programs and click Help > deactivate.

    then install cs5 using your installation files and activate using your serial number.  do not use time machine or assistant migration to move your adobe programs.

  • Found a processor for a1510n - want to make sure that it is compatible

    As the title goes, I found a 2.2 gHz dual-core, for my HP a1510n. I discovered after looking through the previous discussions on this forum, that I needed a socket 939 processor. The processor seems to be compatible. I am mistaken, or have I missed something else?

    Thanks in advance,

    AP

    I was going to suggest eBay, these stores you were watching ask as much as an AMD Phenom II X 4! What a pity that some of the larger internet retailers have no more. I see that tigerdirect.com has very attractive prices on the 5200 + and 6000 +, but they do not have more than 4200 +, or not newegg.com.

    You are not in the United States because the seller for one on eBay that you linked to is located in Korea, otherwise, it will be fine. If you are in the U.S., then it seems pretty good (fresh cheaper port for free). It is still cheaper and comes with the radiator fan, but he's not a buy it now auction. There are heatink fans there, too.

  • Error message: ' the money is corrupt or not a Money data file. " Make sure that you open a file with a MNY extension. "If you have chosen the correct file and are not accessible, you will need open your most recent backup file to access your data.

    Hi just updated my pc at home for Window XP Professional 2002 with Office 2007.  Re-installed Money99 and progam opens fine, but I can't recover my files of saved Money and the aforementioned error keeps popping up.  Help please.

    Thank you

    Hello
     
    Your problem is related to Microsoft Money and would be better suited in the Microsoft Money forum. I would like you to post your question in the forum that supports your problem.
     
     
    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • I bought a new PC and re-uploaded the plan of photography after signed in Adobe CC with my credentials. Sometimes, I get a notification on a trial version of Adobe Bridge and I wanted to make sure I downloaded Lightroom and Ps fo

    I bought a new PC and re-uploaded the plan of photography after signed in Adobe CC with my credentials. Sometimes I get a notification on a trial version of Adobe Bridge and I wanted to make sure that I downloaded Lightroom and Ps for my plan, trial versions not. I just down loaded terms of photography twice, once on my first computer and a second time on this computer. Please advise and thanks in advance.

    [Duplicate message deleted... post the same question more than once is confusing... MOD]

    [This is an open forum, not a direct line to Adobe support... you have to wait a response]

    Hello

    For the trial;

    First of all, disconnect, then back into creative cloud, using adobe id to pay for your subscription.

    https://helpx.Adobe.com/creative-cloud/help/sign-in-out-activate-apps.html

    Then, if you launch any product of CC 2015 and the pop up still shows a trial message window, please check this link for the resolution:

    https://helpx.Adobe.com/manage-account-membership/CC-reverts-to-trial.html

  • In the Powershell script execution error: could not find the type [ordered]: make sure that the assembly containing this type is loaded.

    People,

    I am trying to load and run the PowerShell script of PowerCLI Module to check the CPU, memory and storage overcommitment. VMware PowerCLI Blog - VMware Blogs but somehow it is always stopped with the error: cannot find the [ordered] type: make sure that the assembly containing this type is loaded.

    Here are some of the diagnostic result:

    $PSVersionTable

    Value name

    ----                           -----

    PSVersion 2.0

    PSCompatibleVersions {1.0, 2.0}

    BuildVersion 6.1.7601.17514

    PSRemotingProtocolVersion 2.1

    WSManStackVersion 2.0

    CLRVersion 4.0.30319.1026

    SerializationVersion 1.1.0.1

    Get-ChildItem ' HKLM:\SOFTWARE\Microsoft\NET frame Setup\NDP'-recurse |

    Get-ItemProperty-name of the EA - 0 Version |

    Where {$_.} PSChildName-match ' ^ (?) (S) \p {L} "} |"

    Select PSChildName, Version

    PSChildName Version

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

    v2.0.50727 2.0.50727.5420

    3.0.30729.5420 v3.0

    Windows Communication Foundation 3.0.4506.5420

    Windows Presentation Foundation 3.0.6920.5011

    3.5.30729.5420 v3.5

    Customer 4.0.30319

    4.0.30319 full

    Get-PowerCLIVersion

    PowerCLI Version

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

    VMware vSphere PowerCLI 5.8 Release 1 build 2057893

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

    Versions of the snap

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

    Build VMWare AutoDeploy PowerCLI component 5.5 1983942

    Build VMWare ImageBuilder PowerCLI component 5.5 1983942

    Build license of VMware PowerCLI component 5.5 1265954

    Build VMware Storage PowerCLI component 5.8 2057894

    Build VDS's VMware PowerCLI component 5.8 2031581

    Build VMware vSphere PowerCLI component 5.8 2031581

    I installed Windows6. 1 -KB2819745- x 64 - MultiPkg.msu to enable Powershell v4.0 on my Windows 7 laptop, but still the script cannot be executed with the above error message.

    Any kind of aid and assistance would be greatly appreciated.

    Thank you

    Hello-

    Ah, yes--it is that review.

    Another option, because you are not able to go to .NET FX 4.5, is to remove the parts "[ordered]' of the code that you use.  This type Accelerator makes the hash table a dictionary sorted.  The effect to remove that from the code will be that the properties of the object that results will not be in the order in which they appear in the code.

    And, another option would be to install PowerShell v3 (the version in which the '[ordered]' feature has been added').  That shouldn't require a FX .NET newer than what you showed as having already installed on this computer.  However, as we have seen with the PSSnapin and PSv4 Exchange, you want to make sure that the PSSnapins / Modules you want to use are compatible with PowerShell v3.

  • How can I make use of TC partitions and make sure that the file analysis is on the right partition?  I do not see the partitions that I have done in the Finder, but I can drag and drop the files in the folder 'Data' unique under Finder/Shared/TC.

    MacBook Air, OSX 10.10.3, 128 GB; 2 TB Time Capsule ME177LL/A.

    Final objective: use Time Capsule as a Time Machine for my MacBook Air and as a storage solution for large files that I don't want permanently on my MacBook Air.

    So far, I've implemented the TC and set up Time Machine on the TC.  I was able to create 2 partitions on the TC using disk utility then that TM was a backup and the disk was recognizable in disk utility.

    Under Finder/shared, I see the TimeCapsule 'airport', and when I click on it it is a file called "Data".  I was expecting to see my two partitions here.  Under 'Features' is a ' Zissou31 MacBook Air (3)"sparsebundle file and I can also create folders here and drag and drop files on the TC here.  I can see the partitions in disk utility, but how do I see/use the partitions I created in the Finder?

    I fear that this may not be set up correctly and I'm either losing on an entire partition I created or these files dragged/dropped may be at risk of overwriting of TimeMachine.  How can I make sure that the file analysis is on the appropriate partition?

    I disabled TimeMachine and go back to see if I could 'point' to one of the partitions, but the "Data" folder is the only thing that TimeMachine seen.  How do I point time Machine for one of the partitions?

    Thank you!

    In addition, in disk utility, I can see one of the partitions TC is related to the time Machine, indicated by the icon Time Machine green bottom left, but two partitions seem to fall under "Zissou31 of the MacBook Air (3) .sparsebundle.

  • Verifying plugins to make sure that I have the most up to date, I'm not having any luck all do is just turning a black circle?

    Verifying plugins to make sure that I have the most up to date, I'm not having any luck all do is just turning a black circle?

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • I want to disable iCloud and make sure that

    I want to disable iCloud and make sure that I can download all my photos, contacts, and calendars before he goes.

    I saw several "methods", and they differ greatly.

    How can I do this?

    Simply disconnect from iCloud.

    Everything that you have been synchronized with iCloud is already present on your Mac. The only exception is if you have been optimize Photos. Then the cloud includes files and your Mac has smaller files.

  • I can not get the automatic updates on my samsung jack sgh-i616. _ "connection to the update server is not available. Check your data connection settings and make sure that the device date and time are correct "___RESULT CODE: 80072ee7__ _"

    I can't get the automatic updates on my samsung jack sgh-i616.

     

    "Connection to the update server is not available. "Check your data connection settings and make sure that the device date and time are correct.

     

    RESULT CODE: 80072ee7

     

    -It is a windows mobile 6.1

    Thank you very much! = D

    As a guide.

    This error code translates ERROR_INTERNET_CANNOT_CONNECT.

    You may encounter temporary connection related errors when you use Windows Update or Microsoft Update to install updates
    http://support.Microsoft.com/kb/836941

    Harold Horne / TaurArian [MVP] 2005-2011. The information has been provided * being * with no guarantee or warranty.

  • Fable III PC Retail - cannot activate the game. Windows-live should check the release date of your game make sure that your computer is connected to the internet.

    I just purchased Fable III PC Retail today and I installed and you get the following message:

    Games for Windows - LIVE should check the release date of your game. Please make sure that your computer is connected to the internet.

    No personal information will be sent to Microsoft. A LIVE ID is not necessary.

    As you can see I have an internet connection because I am writing this post. There is no button to push or anything to continue the activation process.

    The game was released in 2011 and 2012 is beyond the release date.

    What is the problem here?

    Using Windows 7 Ultimate Service Pack 1

    I7 2670qm processor

    16 GB of Ram

    NVIDIA Geforce GTX 560M / 3GB

    I found the answer myself. There is a bug in the commercial version of this game. In the pop up menu it is supposed to be a button that says "enter", but it does not appear then press just enter on the keyboard and all is well.

  • Bulletstorm on W7 error""we must check the release date of your game, make sure that you are connected to the internet"on pressing ENTER.

    Original title: Bulletstorm on W7

    Hi, I installed Bulletstorm for my grandson on w7, on the start-up of the prog. It comes up with a "we need to check the release date of your game, make sure that you are connected to the internet" on pressing enter, he says: I am not connected to the net and unable to connect to live, even if that window is open!

    XM

    Given that Bulletstorm is not a product of MS, I suggest you cont EA (the developer) for assistance

    http://www.EA.com/Bulletstorm

  • Hello. Editor of newbie here. If I split a video file into two clips in Premiere Pro and you want then save each one as a different file while exporting to the encoder, how to make sure that they are registered in the form of two different with different

    Hello. Editor of newbie here. If I split a video file into two clips in Premiere Pro and you want then save each one as a different file while exporting to the encoder, how to make sure that they are registered in the form of two different files with different after encoding names?

    Located in and out on a section and that export brands.

    .. .Rinse and repeat for the other section.

    Name each section and where it is exported to separately... and as you wish

Maybe you are looking for

  • My keyboard is half dead?

    Hello I have a problem.The left side of my keyboard does not respond, keys that don't work are the caps, 1, q, tab, esc lock and the w key is sometimes buggy. (I had to type the keys does not respond using a virtual keyboard which is annoying)This pr

  • AirPlay on multiple devices?

    In iTunes, 12.1 I was able to listen to my music anywhere in the home using AirPlay in iTunes. I could send a read track to several devices at the same time including Apple TV, and Airport Express... See screenshot: I've just updated to iTunes 12.3 b

  • Want to m7-k010dx - bluetooth driver for Win7 64 b

    Hello, after buying my desire m7-k010dx I put a new SSD and installed Win7 64 b.  Al, not found drivers on the drivers HP page except the card wireless and bluetooth. Finally found the diver wireless on page Intel - Wireless_17.1.0_Ds64.exe for my In

  • Windows Media Player does not play with sound .m2ts.

    WMP does not play with sound .m2ts.  used for, it is no more.  I tried the ms fix the thing did not help the cause.  What can I do to fix this?

  • Multimedia keys not working not

    Hi, the play/pause and the previous and next on buttons my laptop Envy Touchsmart stopped working this morning. What can I do about it?