Please advise me to generate this fiscal closing month dates as shown below

2007      2008     2009     2010
October               10/27/2007 10/25/2008 10/31/2009
November               11/24/2007 11/29/2008 11/28/2009
December               12/29/2007 1/3/2009     1/2/2010
January               1/26/2008     1/31/2009     1/30/2010
February               2/23/2008     2/28/2009     2/27/2010
March               3/29/2008     4/4/2009     4/3/2010
April               4/26/2008     5/2/2009     5/1/2010
May               5/31/2008     5/30/2009     5/29/2010
June               6/28/2008     7/4/2009     7/3/2010
July               7/26/2008     8/1/2009     7/31/2010
August               8/30/2008     8/29/2009     8/28/2010
September          9/29/2007     9/27/2008     10/3/2009     10/2/2010
Fiscal calendar closing dates for FY2008-2010.
‘Fiscal’ month and ‘Fiscal’ year closing dates will always be on Saturday so
the fiscal month will include either 4 or 5 complete weeks and fiscal
year will be 52 or 53 complete weeks. ‘Fiscal’ months and ‘Fiscal’
years do not close in the middle of a week as ‘calendar’ months and ‘calendar’ years may do.
For example, Fiscal April 2008 started on 3/30/2008 (Sunday, the day after the close of Fiscal March 2008)
and ended on 4/26/2008 (Saturday). Fiscal Year 2008 started on 9/30/2007 (Sunday)
and ends on 9/27/2008 (Saturday).
thanks,

Hi,
try this (vers. 10g/above)
SQL> with t as (  -- "SAMPLE DATA"
  2  select to_date('10/21/2007','mm/dd/yyyy') dt from dual
  3  ) -- "END SAMPLE DATA"
  4  select
  5  decode(to_char(add_months(dt, ctr),'Mon'),'Dec',
  6          next_day(add_months(dt, ctr-1)+35 , 'Saturday')
  7         ,next_day(last_day(add_months(dt, ctr)) - 7, 'Saturday')
  8  ) col1
  9  ,decode(ctr,0
10        ,next_day(add_months(last_day(add_months(dt, ctr)), 12) - 7,   'Saturday')
11        ,next_day(add_months(last_day(add_months(dt, ctr-1))+35, 12) -7,   'Saturday')
12  ) col2
13  ,decode(ctr,0
14         ,next_day(add_months(last_day(add_months(dt, ctr)), 24) -7,   'Saturday')
15         ,next_day(add_months(last_day(add_months(dt, ctr-1))+35, 24) -7,   'Saturday')
16  ) col3
17    from t
18    model
19    dimension by (0 dim)
20    measures ( 0 ctr)
21    rules iterate(12)
22    (  ctr[iteration_number+1] = ctr[iteration_number]+1 )
SQL> /
COL1        COL2        COL3
10/27/2007  10/25/2008  10/31/2009
11/24/2007  11/29/2008  12/5/2009
12/29/2007  1/3/2009    1/2/2010
1/26/2008   1/31/2009   1/30/2010
2/23/2008   2/28/2009   3/6/2010
3/29/2008   4/4/2009    4/3/2010
4/26/2008   5/2/2009    5/1/2010
5/31/2008   5/30/2009   5/29/2010
6/28/2008   7/4/2009    7/3/2010
7/26/2008   8/1/2009    7/31/2010
8/30/2008   8/29/2009   9/4/2010
9/27/2008   10/3/2009   10/2/2010
10/25/2008  10/31/2009  10/30/2010
13 rows selected

Similar Messages

  • TS2634 I bought a composite AV cable with 30 pin connector at a proper apple store for my ipad 2 which no longer works now i have updated to ios7 - please advise how to make this work ?

    I bought a composite AV cable with 30 pin connector at a proper apple store for my ipad 2 which no longer works now i have updated to ios7 - please advise how to make this work ?

    I have the same problem.
    Two similar discussions:
    https://discussions.apple.com/message/23081658#23081658
    https://discussions.apple.com/message/23281391#23281391
    I have not yet seen any official response to the question: "Is the Apple AV Composite cable fully supported with 30pin connector devices upgraded with iOS7 - specifically ? - eg. iPad 2, iPhone 4, iPhone 4s"
    If it is not currently supported is that then due to a bug / oversight and in that case is it something that will be fixed in the near future?
    Please let us know what feedback you got from asking Apple support.

  • Both in safari and Facebook app. Likewise, can't see any Facebook contact pictures on contacts app. my softwar is up to date. my Facebook app is updated. please advise any solution to this. When you view it from safari, no pictures are shown and it looks

    both in safari and facebook app. Likewise, can't see any facebook contact pictures on contacts app. my sofware is up to date. my facebook app is updated. please advise any solution to this. When you view it from safari, no pictures are shown and it looks like html script texts. In facebook app, there are texts but no no images shown. thanks.
    iPad, iOS 6.1.3

    Where did you get the device?  Is it possible that it has an IT policy on the device blocking Facebook and/or Facebook options?  Look in Options >Security Options >General Settings (actual menu paths vary with OS version) and see if there is any reference to IT policy.
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • Since i changed to Firefox 4, now I no longer can view the lower portion of my screen which reveals the LOCK security feature. Please advise how to fix this?

    Since i changed to Firefox 4, now i can no longer view the lower portion of my screen which reveals the LOCK security feature. Please advise how to fix this? if I don't hear back today, i will have to undo Firefox 4 completely

    the lock symbol has been removed in Firefox 4 and replaced with the [[Site Identity button]]
    You can get the padlock back by installing this add-on: https://addons.mozilla.org/en-US/firefox/addon/padlock-icon/?src=discovery-learnmore
    To reinstate the status bar at the foot of the page (also removed in Firefox 4), install this add-on: https://addons.mozilla.org/en-US/firefox/addon/status-4-evar/

  • There is a bug in FF 14,15,16 (I believe all 3) regarding mousedown x/y in an SVG canvas area. Please advise how to report this and have someone fix it.

    I am a web developer. The bug is in latest versions of FF however works fine in previous versions 6-9 (I believe), IE,Chrome. Please go to http://partybannerman.com/svg2/svg-editor.php?id=108&catid=35&wch=MXx5
    Select the number 7 with the arrow tool. Observe the location of the cursor
    Click-drag the selection and closely watch the cursor.
    The cursor no longer is in the same relative position. relative to the object selected.
    This is particularly annoying when zoomed into the "7".
    The precision is necessary for commands that we are implementing that require the cursor position relative to the object selected to be exact.
    Please advise, and thanks for your help

    Not entirely sure I follow your instructions. One thing I do note is the initial starting position of the "7" differs when I compare Firefox (17 or 10) with Chrome. Is that relevant ?
    I wonder if part of the difference may be in how differing browsers cope with the code. I am not a developer and do not know how relevant this is but I note if I try the validator http://validator.w3.org/unicorn/ it is returning some errors.
    If you do think there is a bug try to make a simple test-case that demonstrates this and post in [https://bugzilla.mozilla.org/ bugzilla]. If this appears to be a regression it would be handy to pin it down at least to a particular Firefox version, although users should not now be using Firefox 6-9. (Drill down from [https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/ here] if you need an old version of Firefox to run tests with)
    Someone more knowledgeable may provide further information, or if you need advice on troubleshooting coding issues you may find this forum useful http://forums.mozillazine.org/viewforum.php?f=25

  • After a PC crash i managed to restore my iTines library only partially. My music is there, but my ratings ant playlists are missing. Please advise how to fix this.

    After a PC crash I managed to restore my iTunes Library only partially.
    My music is all there. But my ratings and playlists are missing.
    Please advise how I can fix this.
    On my IPod Classic a still have all the music and the playlists. Is it possible to use this? Synchronise from i-Pod to iTunes??

    Hi, I have a similar problem on my iMac with unusable internal drive: https://discussions.apple.com/thread/3031967
    Dirtylobster wrote:
     4. Install win7 in your brand new virtual environment but after first step in the installation where it will reboot after unpacking the files - TURN OFF YOUR VIRTUAL MACHINE. You got 10 seconds to do that.
    Failure to do so will mess up the install and you must start over.
    I'm not sure if I should take a chance... Could you please explain step 4 a bit more detailed? Do I have to click on "reboot" (where?) and then within 10 seconds turn off the virtual machine? HOW would I do that? THANKS!
    EDIT: Did you read the following too?
    http://forums.macrumors.com/showthread.php?p=10601274
    What do you think of this alternative...? Thanks again.
    Message was edited by: coxorange

  • I have mistakenly selected "opt out" on SHARE and want to reverse it - Please advise how to do this

    I have mistakenly selected "opt out" on my Share add-on & wish to reverse this selection - please advise how to do this

    Please contact the developer of the add-on for that.

  • My ipod touch 4th generation is disabled. please advise how to fix this?

    My ipod touch 4th generations is disabled. due to miss type of passcode. Please advise what to do?

    Plug your ipod into your usb cable to your
    computer. Then open your iTunes library. Then on the left you should be able to unlock it (;

  • I have a new iphone 4 but have a problem in that the network reads Sim not provisioned, please advise how to overcome this problem?

    My new iphone has been recognised by itunes, updated the software but unable to connect to a network, on checking "Network" the phone is searching but to no avail. In "About, Network, there is a statement reading SIM not provisioned". I have no idea what this refers to perhaps someone could advise? 

    I've managed to speak to someone who knew what he was talking about and having confirmed the original sim on my iPhone 3 followed by confirming the number on the iPhone 4 Micro Sim he advised that the new micro sim had not been activated. As a direct result we'll head off to one of their support offices to activate and hopefully pass on the iphone 3 to another of our employees after a reset of course!

  • HT201413 I cannot backup Ipad2 on my PC but can save backup on my PC for the ipad4. Please advise how to overcome this problem?

    When I try to backup to the PC or Icloud my IPAD2 the following message appears that "Itunes could not back upthe ipad because the backup could not be saved on the computer" and the nthe process stops. However this message does not appear when I update for the new software my IPAD 4. Please note that my itunes is up to date. I cannot log in as an Administrator to my PC. I think the problem is somwthing else as before I was able to update the software on my IPAD 2.

    Hi, lorlla123.
    The steps in the article below will help you troubleshoot the backup issue with your iPad 2. 
    iOS: Troubleshooting backup issues in iTunes
    http://support.apple.com/kb/ts2529
    Regards,
    Jason H. 

  • Link to A folder View in a PDF Portfolio - feature no longer working - please advise

    Hi, I am no longer able to link to a Folder View of a PDF Portfolio:
    Within a PDF portfolio i need to link from a PDF to a folder view in the Portfolio. I am using Link Action - Go to Page View.
    This used to work for me - very important feature that no longer works. Please advise a workaround.
    Steps:
    1. Start a PDF Portfolio that contains files and folders
    2. Open a PDF in the Portfolio
    3. in the opened PDF click Add or Edit Link
    4. Define a link area and set it to Go To A Page Vies
    5. In the past i have been able to target a Folder View in the Portfolio - ie. direct a user not to a file, but instead to a folder view that contains relevant files. I would do this by setting the Target Page View to my desired folder view
    6. This used to work in bringing a user to the folder view i specify. Now it does nothing. If i go back to the PDF and EDIT the Link i see this. File: Parent Document Page 1. This in fact does nothing.
    Please advise, am i doing this wrong, it used to work. I have tried several workarounds, with no luck.
    thanks!
    Alejandro Collados-Nunez
    Graphic Designer | Art Director
    | e: [email protected]
    | w: www.1lb.ca

    There's an extension or two, or a combination of extensions which seem to be causing that in Firefox 6.0.2. One that has been mentioned is TabMix Plus.
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes
    You need to figure out what is causing it, and disable that extension/s until they are fixed by their developer.

  • Linking to a Folder View of a PDF Portfolio - feature no longer working - please advise

    Hi, I am no longer able to link to a Folder View of a PDF Portfolio:
    Within a PDF portfolio i need to link from a PDF to a folder view in the Portfolio. I am using Link Action - Go to Page View.
    This used to work for me - very important feature that no longer works. Please advise a workaround.
    Steps:
    1. Start a PDF Portfolio that contains files and folders
    2. Open a PDF in the Portfolio
    3. in the opened PDF click Add or Edit Link
    4. Define a link area and set it to Go To A Page Vies
    5. In the past i have been able to target a Folder View in the Portfolio - ie. direct a user not to a file, but instead to a folder view that contains relevant files. I would do this by setting the Target Page View to my desired folder view
    6. This used to work in bringing a user to the folder view i specify. Now it does nothing. If i go back to the PDF and EDIT the Link i see this. File: Parent Document Page 1. This in fact does nothing.
    Please advise, am i doing this wrong, it used to work. I have tried several workarounds, with no luck.
    thanks!
    Alejandro Collados-Nunez
    Graphic Designer | Art Director
    | e: [email protected]
    | w: www.1lb.ca

    There's an extension or two, or a combination of extensions which seem to be causing that in Firefox 6.0.2. One that has been mentioned is TabMix Plus.
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes
    You need to figure out what is causing it, and disable that extension/s until they are fixed by their developer.

  • Maverick wont download. error message. Please advise

    Each time I go to download the free update, it asks for my apple ID which I input and then after a few seconds an error message pops up saying there was a problem with the download try again later. Please advise a way around this. Thanks

    Hi saritamann,
    If you are having issues accessing the Mac App Store or starting the download of Mavericks, you may find the following articles helpful:
    Mac App Store: Solve problems
    http://support.apple.com/kb/PH11501
    Apple Support: Troubleshooting the Mac App Store
    http://support.apple.com/kb/TS3624
    Regards,
    - Brenden

  • Complaint - Netflix and Youtube (internet option) not working on Apple TV 2 - Please advise

    Netflix and Youtube (internet option) is not working on Apple TV 2 I bought - please advise how to fix this.  Please note this is not to do with signing in as the internet menu and option to sign in is not given at all on screen/within ATV2.  The only menu options which appear on screen are "computer" and "settings" and nothing else.
    I have read from some other posts this may be because of the country in which I am located (currently the UAE) - this of course is not an acceptable excuse and if the real reason I hope Apple will fix this immediately.  From the box I bought the description on the reverse side of the packaging clearly states "Plays movies and TV shows from Netflix, live and archived games from MLB, NBA, and NHL, and videos from YouTube and Vimeo".
    If it is a country specific/territory issue then the packaging must be changed for countries in which this does not work as this product is being missold to customers, especially as having the option to stream Netflix, YouTube and Vimeo is one of its unique selling points - without which I would not have bought it in the 1st place!
    Currently very disappointed in Apple (normally a complete Apple fan!)
    Any help appreciated (positive comments only thank you).

    In reply to the comment "You seem to be saying that the box that you have is different in some way".  I'm actually not saying that at all as I have no idea what your box says and therefore can't comment. 
    And unless you're on the packaging design or distribution teams it would be a giant leap to presume every single box around the world is the same based on the product being the same.
    As a marketing person I know companies of all sizes and shapes tailor their products to cater for individual markets.  E.g. coca cola cans have different designs based on distribution location and languages used in particular countries and even the product itself can differ, although this may not be the case with Apple of course.
    I'm simply describing what is on my box and I don't neccessarily mean to be abrupt however I certainly wouldn't waste my time typing on this forum to say the box says something when it actually does not.
    Let me know if you can postively affect the outcome of this problem/help in someway and I'll be sure to send the image.
    Thanks.

  • Haven't receive my receipt via email after app purchase. Please advise. Thanks

    hi there,
    just wondering how come i haven't receive any receipt for my recent app purchase of a calculator app.
    and since there's no email, there's no way to get a refund as it was an accidental purchase.
    please advise.
    thanks
    ~s

    I have this problem too.  did you get a response?

Maybe you are looking for

  • Cost for a Batch

    Hi, How can i view the cost for a Batch in OPM. We have a form in descrete manufacturing as WIP Value summary to view the cost for a Job. is there any form in OPM 11.5.10.2?

  • Multiple record update extension issue (felixone

    I just purchased the Multiple Records at Once Extension by Felixone. I have put it to good use but have noticed an issue with it. PHP MySQL. I am using Dreamweaver 8 with the Repeat Region behaviour, and the Recordset Navigation Bar, along with the e

  • Difference forecast results between the Batch run and interactive run in DP

    Hi Guru's, I am running the forecast in DP with interactive and batch run (with same selection id and same univariate profile) but  i am getting the difference results not both are equal??? Is it we will not get the same results?? If i tried with onl

  • New-mailboxExportRequest exports the entire folder in spite of filter conditions

    Hi there, got an issue with exporting mailboxes, script below exports entire inbox folder rather than just emails in the mentioned time frame $export_date= [datetime]"10/29/2014 12:00:00 AM" New-MailboxExportRequest -FilePath \\server\export\matthew.

  • Can't install Muse CC - error says beta version is already installed?

    I can't find the app anywhere on my computer but the error I'm getting during install in that a "beta version of this product exists on the computer. Please quit and uninstall that version before continuing" Anyone else getting this error?