Using trunc(add_months(sysdate, 1 * -12) getting the monday on that wk

Dear all;
I am using trunc(add_months(sysdate, 1 * -12)), which get me 05/18/2010 however what I would like to do is bascially if that date doesnt fall on a monday then get the monday associated with it in that period, so in this case the monday associated with it is 05/17/2010. how do I modify that to get what i want.
Edited by: user13328581 on May 18, 2011 8:36 AM

SQL> select trunc(add_months(sysdate, 1 * -12),'IW') from dual
  2  /
TRUNC(ADD
17-MAY-10
SQL> OR:
SQL> select next_day(trunc(add_months(sysdate, 1 * -12)) - 7,'monday') from dual
  2  /
NEXT_DAY(
17-MAY-10
SQL> SY.

Similar Messages

  • HT201210 I cant use my iphone because I'm getting the error message that I must connect to Itunes and when I do it says the only option I have is to restore my phone.

    I cant use my iphone because I'm getting the error message that I must connect to Itunes and when I do it says the only option I have is to restore my phone.

    Try using RecBoot or TinyUmbrella to kick it out of Recovery mode.
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101
     In Memory of Steve Jobs 

  • I just got a new macbook pro. How do I get the 900  songs that I took off of cds into iTunes on my computer from my iPhone. I had no problems syncing the music I had purchased from iTunes. I have tried to sync it using iTunes match, this did not work.

    I just got a new macbook pro. How do I get the 900+  songs that I took off of cds into iTunes on my computer from my iPhone. I had no problems syncing the music I had purchased from iTunes. I have tried to sync it using iTunes match, this did not work. I would like to have access to my full library without going into the user profile of my old computer, which is on my new computers hard drive. I would like to eventually delete the old profile so that I have more space on my hard drive.

    http://support.apple.com/kb/HT4527?viewlocale=en_US&locale=en_US

  • HT4972 I replaced the computer I originally used to synch my iPhone. I get the message stating that my content will be erased, even though this is the computer I now synch with. Is there a way to make the update recognize the new computer?

    I replaced the computer I originally used to synch my iPhone. When trying to update to iOS5.0, I get the message stating that my content will be erased, even though this is the computer I now synch my phone with. Is there a way to make the update recognize the new computer so that my content will be kept?

    The best option is to copy your entire iTunes folder from your old computer to your new one using one of the methods described here: http://support.apple.com/kb/HT4527.  This will allow iTunes on your new computer to recognize and sync with your phone without deleting content.  You will also need to copy over any other synced data not in your iTunes library such as photos synced to your phone, calendars and contacts.
    If you can't do this, these articles will help you start syncing with your new computer with minimal or no data loss:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive
    Recovering your iTunes library from your iPod or iOS device

  • I can no longer charge my iPhone5 through either of my macbook pros. I get the error message that a USB device is using too much power. Can anyone help?

    I can no longer charge my iPhone5 through either of my macbook pros. I get the error message that a USB device is using too much power. Can anyone help?

    I reconnected the original powered hub that I thought probably caused the problem and this time it shut down the whole computer. When I rebooted everything now works perfectly. The system reset. I tried another powered hub and it didn't have the same effect so the old one is heading for the bin and with fingers crossed all systems are now working perfectly. Trying to reset PRAM or reset the SMC didn't work but causing the same power issue did. Thanks for your input though. It did get me to think what was the original cause.
    Cheers
    Guy

  • I've deleted Adobe Reader 11 and rebooted and reinstalled Adobe Reader 11 and I still get the error message that 'Adobe Reader is blocked because it is out of date'. Using Windows XP with the latest updates (SP3).

    I've deleted Adobe Reader 11 and rebooted and reinstalled Adobe Reader 11 and I still get the error message that 'Adobe Reader is blocked because it is out of date'. Using Windows XP with the latest updates (SP3).

    Screenshots attached to email replies will not make it back to the forum; you need to login to the forum and post it in your topic using the camera icon in the editor.
    Google Chrome is a problem:
    if you use Chrome's own PDF viewer, the results are unpredictable.
    if you use the Adobe Reader plugin with Chrome, it may reject (block) it if it is not the latest version.  Reader 11.0.08 is the latest version for Windows XP, but Chrome may insist on the current version 11.0.10.
    My suggestion; use a different browser!

  • After a recovery reinstall of 10.8.5, using Safari 6.0.3, I get the message "Safari won't open because of a problem"

    After a recovery reinstall of 10.8.5 and using Safari 6.0.3, I get the message "Safari won't open because of a problem"
    I'm not sure if this Safari is compatible. I also have Safari 7.0.4 in my applications folder, which i downloaded as an attempt to
    solve the problem, but it isn't compatible with my system.

    Having two copies of Safari on the hard drive is what's keeping Safari from opening.
    Move the 7.0.4 version to the Trash.
    Then restart your Mac and try Safari.
    Safari 7.0.4 won't run on Mountain Lion. Only v10.9 Mavericks.

  • My music app icon is missing from my home screen and I have to go through the search to find and use it. How do I get the icon back on my home screen

    (IOS 7 update trouble) My music app icon is missing from my home screen and I have to go through the search to find and use it. How do I get the icon back on my home screen

    Find which screen, folder it was moved to, and hold down the icon until the icons start shaking. Then drag it to the left or right edge of the screen, and it will allow you to move it to which ever screen you want it. When you have it there, tap the Home button to stop the icons form shaking.
    Or do what hannahsage said above.

  • Best I have been trying for a week to order greeting cards using iPhoto but do I always get the same statement: there has been an error occurred while connecting to Apple's online store try again

    Best I have been trying for a week to order greeting cards using iPhoto but do I always get the same statement:
    there has been an error occurred while connecting to Apple's online store try again

    Best I have been trying for a week to order greeting cards using iPhoto but do I always get the same statement:
    there has been an error occurred while connecting to Apple's online store try again

  • I have just got an iPad and I want the music to be transferred through my iPod touch using iCloud but I didn't get the music from iTunes so I don't think it will let me do it. Do you have any tips that could help me?

    I have just got an iPad and I want the music to be transferred through my iPod touch using iCloud but I didn't get the music from iTunes so I don't think it will let me do it. Do you have any tips that could help me?

    Only photos taken with the iPad, copied onto it via the camera connection kit, or saved from emails/websites etc can be deleted directly on the iPad - either via the trashcan icon in the top right corner if viewing the photo in full screen, or via the icon of the box with the arrow coming out of it in thumbnail view.
    Photos that were synced from a computer are deleted by moving/removing/de-selecting them from where they were synced from and then re-syncing. If you want to remove them all then normally you could just sync an empty folder (in terms of photos) to the iPad, but as you don't want to sync at the moment you can't do that.
    You can reset the iPad back to factory settings and start from scratch with it : Settings > General > Reset > Erase All Content And Settings

  • When using Firefox I can no long get the two finger enlargement to work on my Apple. The same site will enlarge using Safari, so I assume it has to do with Firefox

    When using Firefox I can no long get the two finger enlargement to work on my Apple. The same site will enlarge using Safari, so I assume it has to do with Firefox

    Some gestures have been removed in Firefox 4 and later.
    You can restore the zoom feature by changing the values of the related prefs on the <b>about:config</b> page.
    browser.gesture.pinch.in -> <b>cmd_fullZoomReduce</b>
    browser.gesture.pinch.in.shift -> <b>cmd_fullZoomReset</b>
    browser.gesture.pinch.out -> <b>cmd_fullZoomEnlarge</b>
    browser.gesture.pinch.out.shift -> <b>cmd_fullZoomReset</b>
    browser.gesture.pinch.latched -> <b>false</b>
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold(user set).
    *Preferences can be reset to the default or changed via the right-click context menu.

  • I am using windows 7 and can't get the print drives to load for F2210 printer

    I am using windows 7 and can't get the print drives to load for F2210 printer and I keep receiving different fatal error codes.

    Hello @Imvertical 
    Welcome to the forums!
    I read about how you're attempting to install your Deskjet F2210 on your Windows 7 system and receive Fatal Error codes. I will do my best to help and make some suggestions for you to try. 
    To being, try a standard copy from the unit to see if it will copy. If copies work, continue troubleshooting. If not, let me know what happened when you made a copy.
    Next:
    Perform a Level 3 uninstall.
    There are 2 ways you can run the uninstall:
    From Original installation CD:
    1. Insert CD into drive, and then cancel the installer
    2. Click Start and open 'Computer', and then right click on the CD drive and open
    3. Open folder Util
    4. Open folder CCC
    5. If you have an HP computer run the L3uninstall.exe. If you have a non-HP computer run the L4uninstall.exe
    6. When the uninstall has completed restart the computer
    7. Run Disk cleanup from Accessories\ System Tools
    8. Download and install the latest version of Adobe flash player
    http://www.adobe.com/support/flashplayer/downloads.html
    9. Download the full feature software and drivers: HP Deskjet F2200/F2224 All-in-One Printer series Full Feature Software and Driver
    10. Run the download to reinstall the printer
    If software was downloaded and extracted to your system:
    1. Click Start and type %temp% in the run field
    2. Look for, and open the folder starting with 7z (Example: 7zS2356) (If there is more than one, choose the most recent folder)
    3. Open folder Util
    4. Open folder CCC
    5. If you have an HP computer run the L3uninstall.exe. If you have a non-HP computer run the L4uninstall.exe
    6. When the uninstall has completed restart the computer
    7. Run Disk cleanup from Accessories\ System Tools
    8. Download and install the latest version of Adobe flash player
    http://www.adobe.com/support/flashplayer/downloads.html
    9. Download the full feature software and drivers: HP Deskjet F2200/F2224 All-in-One Printer series Full Feature Software and Driver
    10. Run the download to reinstall the printer
    Please let me know if the installation worked after the Level 3 uninstall.
    Good luck and have a nice Wednesday!
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • How do I get iTunes 11 to work as the old iTunes did in this respect: after playing a song in one playlist, I click on another playlist, highlight a song, press play, and get the result of that song playing & that playlist continuing?

       How do I get iTunes 11 to work as the old iTunes did in this respect: after playing a song in one playlist, I click on another playlist, highlight a song, press play, and get the result of that song playing & that playlist continuing?  As it goes now, one clicks on the song in the new playlist where the arrow is and then chooses 'Play Song Next.'  So, it plays next, but then the song after that is back in the old playlist.  I want to use iTunes smoothly without the extra clicks I've had to do in order to get the playlist to continue.  This is music for background while I play the violin at restaurants, and extra clicks and hassle is quite unappreciated, especailly since it worked fine in the previous iTunes.
       Thanks.

    At the top of the playlist where it shows the playlist title and the number of songs, there are two icons. Click the "play" triangle to add the entire playlist to "Up Next", or the "shuffle" symbol to do the same thing but in random order. But the currently playing track will stop playing, and all the songs in "Up Next" will be removed (replaced by the ones from this playlist).
    If you hold down the "option" key while clicking those icons, the currently playing song will continue playing, and the new playlist will be added to "Up Next" (above the songs that were already there).

  • HT1947 Remote app requirements are stated as "software version 3.1.3 or later". I am running 4.2.1 and when I try to download it says 4.3 required. Where can I get the (old) version that runs on my IOS?

    'Remote' app requirements are stated as "software version 3.1.3 or later". I am running 4.2.1 and when I try to download it says 4.3 required.
    OK, I understand that new versions make use of facilities that come with new versions of IOS, but there is/was a version that runs on 3.1.3 and therefore, I assume 4.2.1. Where can I get the (old) version that runs on my IOS?
    The app store seems to ignore all legacy equipment owners, and want me to spend loadsa money to get the latest shiny toy. It probably makes business sense, but I dislike companies that take that approach. This is my first venture into smart phones, and I like the IOS interface, but I'm not sure I can afford the maintenance.

    The app store seems to ignore all legacy equipment owners, and want me to spend loadsa money to get the latest shiny toy. It probably makes business sense, but I dislike companies that take that approach.
    This is standard for Apple.  While there is little official mention of the software support lifespan for equipment, typical support has been about 4-5 years for computers.  It strikes me that newer items, especially mobile devices, are not built as sturdily nor do they have the hardware upgrade capabilities required to keep up with newer systems.  When we bought an iPhone 4S we were told by the person in the store we'd probably be looking at a newer model in two years.  The iPhone 3G could be anywhere from 2 to 4 years old, putting it well into.
    As for app availability, Apple typically pulls old software versions from its site when new versions appear.  If it is a non-Apple app then I guess it is up to the vendor. It is indeed tiresome but it is not at all unusual.  Since I only ever run used Macs, I download current versions even though my computer won't run them, stick them on a hard drive, then I have them when I upgrade to a newer used computer.  If you run older equipment you have to learn a different mode of operation to exist with the Apple 'new and innovative' but 'forget about the old' philosophy.

  • HT201272 My computer was acting up so i had to restore it and i lost everything. how do i get the songs back that i already paid for?

    My computer was acting up so i had to restore it and i lost everything. how do i get the songs back that i already paid for?

    The easiest way to get back missing items?  Restore your whole hard drive with all your irreplaceable things like photos in about 20 minutes from the backup clone you make on a regular basis.
    Downloading (using iOS or computer) past purchases from the App Store, iBookstore, and iTunes Store - http://support.apple.com/kb/ht2519 - enabled with iTunes 10.3 and newer; not all media formats are available in all countries (see: iTunes in the Cloud and iTunes Match Availability by Country - http://support.apple.com/kb/HT5085); apps, books (not audiobooks), music, t.v. shows, and movies (some - not all studios have permitted this).  Downloading previously purchased movies and TV shows requires iTunes 10.6 or later.  Discontinued items not available. For items not included in the iCloud list (e.g., ringtones), or locations or computer systems where iCloud is not (yet?) available, you only get one download per fee paid.  Apple notes it is your responsibility to back up your purchases.
    Select the store on the left side of iTunes.
    Click on Purchased on the right side under Quick Links.
    You can re-download your available previous purchases.

Maybe you are looking for

  • Error in creating a process task adapter in OIM

    Hi All, I am trying to create a process task adapter(Java Task) in OIM 11.1.1.5. The code tries to fetch the values of a process form using a lookup and store it in a hashmap. So have done import for Thor.Api.* and com.thortech.xl.dataaccess.tcDataPr

  • Error message - what has the boy done now?

    My son deleted his playlist on iTunes on Saturday for some unknown reason. Today he plugged in his iPod and all the songs on it deleted/erased. So I thought, just create a new playlist right? Yet after multiple tries, I get a message saying that the

  • All pdf's open with Adobe Reader 4

    I have Acrobat 7 installed and every time I open a pdf document from IE6 it opens with Reader 4, but if I open Adobe Acrobat 7 first, all pdf's open correctly.

  • Time code in projects?

    Want a challenge?  I've got a great one for you! On my MacBook Pro's iMovie '11, I have a video I cut together (5 min) that turns out to have corrupted files, making transfer of the video impossible (confirmed by an Apple technician).  I want to recr

  • Can't erase/delete info from old iphone

    Hello, I replaced my wife's 4S with a 5S. Now I cannot erase content and settings, presumably because the old iphone can no longer get on line, having been replaced by the new 5S. It doesn't work with wifi either. I tried connecting the old one to it