When ever  enter the date start date up to next year same date between the days divided into 8 parts

when ever  enter the date start date up to next year same date between the days divided into 8 parts
Q1.1 (YYYY) = 1st half of Quarter 1 for year YYYY
Q1.2 (YYYY) = 2nd half of Quarter1 for year YYYY
Q2.1 (YYYY) = 1st half of Quarter 2 for year YYYY
Q2.2 (YYYY) = 2nd half of Quarter 2 for year YYYY
Q3.1 (YYYY) = 1st half of Quarter 3 for year YYYY
Q3.2 (YYYY) = 2nd half of QuarterQ3 for year YYYY
Q4.1 (YYYY) = 1st half of Quarter 4 for year YYYY
Q4.2 (YYYY) = 2nd half of Quarter 4 for year YYYY
Here YYYY depicts the year.
e.g. Q1.2 (2014) depicts the 2nd half of Quarter 1 for year 2014.
The description of these values are explained below.
The table below provides the description about each value:
Quarter     Quarter Range      Start Date
Q1.1      1 Jan - 15 Feb         1st  Jan
Q1.2      16 Feb-31 Mar         16th Feb
Q2.1      1 Apr- 15 May          1st Apr
Q2.2      16 May-30 June       16th May
Q3.1      1 Jul-15 Aug             1th Jul
Q3.2      16 Aug -30 Sep       16th Aug
Q4.1      1 Oct -15 Nov           1st Oct
Q4.2      16 Nov – 31 Dec      16th Nov
The dropdown values in time window needs to be updated as per date entered by the user in the Audit Plan start date and
should display the next four Quarter (each divided in 2 half  i.e. Eight values ) along with the year  from the selected Audit plan start date.
for eg. If the Plan start date is given as August 10 2013 then the Time window will display the following options:                      
Q3.2 (2013)                
Q 4.1 (2013)               
Q 4.2 (2013)               
Q 1.1 (2014)               
Q1.2 (2014)                
Q2.1 (2014)                
Q 2.2 (2014)               
Q 3.1 (2014)               
You can refer to the Table above and look that 10 Aug 2013 falls under the Q3.1 so Time window will display the next next 8 half Quarters ( Total 4 Quarter) till Q 3.1 for the year 2014.

Hello,
WITH half_quarters AS(
    SELECT  ADD_MONTHS(TRUNC(DATE '2013-08-15','Q'), 3*(LEVEL - 1)) hq_start
           ,1 part
    FROM    dual
    CONNECT BY ROWNUM <= 5
    UNION ALL
    SELECT  ADD_MONTHS(TRUNC(DATE '2013-08-15','Q'), 3*(LEVEL - 1) + 1) + 15 hq_start
           ,2 part
    FROM    dual
    CONNECT BY ROWNUM <= 5
,ordered_half_quarters AS(
    SELECT  hq_start
           ,part
           ,ROW_NUMBER() OVER (ORDER BY hq_start) r
    FROM    half_quarters
    WHERE   hq_start > DATE '2013-08-15'
SELECT  'Q '||TO_CHAR(hq_start,'Q')||'.'||part||' ('||TO_CHAR(hq_start,'YYYY')||')' q
FROM    ordered_half_quarters
WHERE   r <= 8
ORDER BY r;
Q       
Q 3.2 (2013) 
Q 4.1 (2013) 
Q 4.2 (2013) 
Q 1.1 (2014) 
Q 1.2 (2014) 
Q 2.1 (2014) 
Q 2.2 (2014) 
Q 3.1 (2014) 
half_quarters generates the start dates of every half of a quarter, starting with the begin of the first quarter that contains the sample date.
The next step is to order the dates and to select only those after the sample date.
The last part formats the output and orders the data.
Regards
Marcus

Similar Messages

  • I am trying to sign into my iMessage account on my iPad however when I enter my username and password then press "next" it returns back to the sign in screen. Does anyone know how I sign in?

    Does anyone know how I can sign in?

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Troubleshooting Messages http://support.apple.com/kb/TS2755
     Cheers, Tom

  • I'm getting the following error message when ever I try to start cs6 and the program gets close. "Adobe Photoshop CS6 has stopped working. A problem caused the program to stop working correctly."

    Hi,
    I’m getting the following error message when ever I try to start cs6 and the program gets close.
    “Adobe Photoshop CS6 has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available”
    Please advise what is the problem? and How to sort this out?
    OS Name
    Microsoft Windows 8.1 Pro
    Version
    6.3.9600 Build 9600
    Other OS Description
    Not Available
    OS Manufacturer
    Microsoft Corporation
    System Name
    JARVIS
    System Manufacturer
    Dell Inc.
    System Model
    Inspiron N5110
    System Type
    x64-based PC
    System SKU
    To be filled by O.E.M.
    Processor
    Intel(R) Core(TM) i5-2450M CPU @ 2.50GHz, 2501 Mhz, 2 Core(s), 4 Logical Processor(s)
    BIOS Version/Date
    Dell Inc. A11, 8/3/2012
    SMBIOS Version
    2.6
    Embedded Controller Version
    1.01
    BIOS Mode
    Legacy
    BaseBoard Manufacturer
    Dell Inc.
    BaseBoard Model
    Not Available
    BaseBoard Name
    Base Board
    Platform Role
    Mobile
    Secure Boot State
    Unsupported
    PCR7 Configuration
    Binding Not Possible
    Windows Directory
    C:\Windows
    System Directory
    C:\Windows\system32
    Boot Device
    \Device\HarddiskVolume2
    Locale
    United States
    Hardware Abstraction Layer
    Version = "6.3.9600.17196"
    User Name
    Jarvis\JARVIS\Abhishek
    Time Zone
    India Standard Time
    Installed Physical Memory (RAM)
    4.00 GB
    Total Physical Memory
    3.16 GB
    Available Physical Memory
    1.21 GB
    Total Virtual Memory
    3.72 GB
    Available Virtual Memory
    1.55 GB
    Page File Space
    576 MB
    Page File
    C:\pagefile.sys
    Hyper-V - VM Monitor Mode Extensions
    Yes
    Hyper-V - Second Level Address Translation Extensions
    Yes
    Hyper-V - Virtualization Enabled in Firmware
    Yes
    Hyper-V - Data Execution Protection
    Yes
    Display adapters:
      and NVIDIA GeForce GT 525M.

    Without the actual crash logs nobody can say, but chances are that your graphics hardware is to blame, so update the driver...
    Mylenium

  • I have a macbook pro 15 retina - when ever I connect to bluetooth speaker, I get this loud noise coming from the speaker - if I turn bluetooth off, the noise is now coming from the macbook speakers

    I have a macbook pro 15 retina - when ever I connect to bluetooth speaker, I get this loud noise coming from the speaker - if I turn bluetooth off, the noise is now coming from the macbook speakers & stays until i restart.

    Hi John. Thanks for that input. At Step 6, after clicking "Next" I get a window telling me my OS version is unsupported and the installation may not complete. I am prompted to go to Canon's web site to "Check Latest Info".
    I've had this window on previous attempts and from Canon's web site I downloaded two drivers as follows
    - ICA Driver V4.0.0
    - Canon IJ Network Tool V4.5.0
    I'm not sure if these are the correct / complete drivers I need for this install or not.
    I continue to follow all the steps. At step 9 I click "Wireless Set Up using USB" amd get a License Agreement (a little different than instructions)
    I click "Agree" and it goes to a Setup window with two progress bars showing the installation. I've not been prompted to connect the USB?
    After the Setup window is done, I am then prompted to connect the printer via USB. I connect the printer and click on "Redetect". It is not detected.
    I then try following the Canon on screen instructions for connecting to the wireless LAN amd enter the password. It searches and indicates "Connecting" on the window, but it never connects and the blue light just blinks
    So, at this point I am stuck??
    Thanks
    Stephen

  • IPod Touch 5th Generation Australia Release Date? Last week I went to the Carindale Apple store located in Queensland and they had said they wont be getting it for a few months but they'll get it before next year. Anyone know the exact date ?

    So the question says it all. Last week, I went to the Carindale Apple Store located in Queensland to purchase a iPad 2 and a iPod Touch 5th Generation. I asked one of the shop assistants when they were getting the iPod Touch 5th Generations and they had said that they didnt know that they would recieve it in a few months but they'll recieve it before next year. Anyone know the OFFICIAL RELEASE DATE of it in Australia ? I want to order it online but my mum doesnt have a credit card, lol .

    No, Apple has not set a date.
    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 am trying to sync the ipad calendar with my Google calendar.  The events sync from my Google calendar to the iPad calendar but when I enter an event on my iPad caledar it does not sync to the Google calendar.

    I am trying to sync the ipad calendar with my Google calendar.  The events sync from my Google calendar to the iPad calendar but when I enter an event on my iPad caledar it does not sync to the Google calendar.

    Did you ever get an answer to this?  I'm having the same issue.

  • Safari keeps dropping down this error message when ever i try to log on to any website safai can't verify the identity of the website ( e.g.. any address ) and the drop down has three choices to click on or else you can't go foward., they are check certif

    Safari keeps dropping down this error message when ever i try to log on to any website safai can't verify the identity of the website ( e.g.. any address ) and the drop down has three choices to click on or else you can't go foward., they are check certificate ______ cancel ______ continue....  This thing is so annoying when trying to go somewhere i just want the error message to go away.

    In your Keychain under 'login' delete the VeriSign certificates and then quit and restart all browsers/itunes/app store.
    http://apple.stackexchange.com/questions/180570/invalid-certificate-after-securi ty-update-2015-004-in-mavericks

  • When ever i touch for example appstore it touches safari. i press home button the my phone does what ever it wants, like goes to settings and presses random stuff please help. :(

    when ever i touch for example appstore it touches safari. i press home button the my phone does what ever it wants, like goes to settings and presses random stuff please help. :(

    Try restarting it. If this does not work, then hard restart it which is holding the power and home button until the product ***** off. If this does not help either, plug it into the computer and restore it. Make sure you back up the device before you restore it though! Here are instructions on how to restore and back up an apple device. http://support.apple.com/kb/ht1414

  • I tried to upgrade to the latest version of Firefox but on the Firefox start page is still says "you are not on the latest version of Firefox, upgrade now"

    I tried to upgrade to the latest version of Firefox but on the Firefox start page it still says "you are not on the latest version of Firefox, upgrade now". The start page looks different so maybe it did upgrade but why does the reminder still show?

    You may see that message below the Google search box on www.google.com/firefox which is the old Firefox default home page. It appears that page is no longer being maintained by Google. You appear to have the latest Firefox version.
    '''If you want the Google search page as your home page,''' change your home page to '''''about:home''''' (a new, updated version of the old Google/Firefox home page is now built-in to Firefox).
    *See --> http://support.mozilla.com/en-US/kb/How+to+set+the+home+page
    Also see --> https://support.mozilla.com/en-US/kb/Finding+your+Firefox+version<br />
    You can also see your version on the ''Help > Troubleshooting Information'' display
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *'''''Shockwave Flash''''' (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *'''''Next Generation Java Plug-in for Mozilla browsers''''': [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • I'm note a firefox geek, but ever since my friend told me to install NoScript I can not access my msn and hotmail page. It tells me that Java Script is required, what ever that is. What do I do next. Do I uninstall the No Script. Thanks Ed

    I'm note a firefox geek, but ever since my friend told me to install NoScript I can not access my msn and hotmail page. It tells me that Java Script is required, what ever that is. What do I do next. Do I uninstall the No Script. Thanks Ed edit
    Details

    You are on Windows 2000, you do not have a "Firefox" button, and should consider yourself to be fortunate in that you still have menus and don't have to do anything to get the menus back instead of the "Firefox" button. (The same applies to Windows XP users).
    Use the "File" menu to get to Import. You are not on Windows 7 or Vista, and don't have to put up with the nonsense added for Aero.
    If you want the "Firefox" button you can get it with View -> toolbars -> (uncheck) Menu Bar. The menu bar and the "Firefox" button were supposed to be mutually exclusive (which is impossible in some cases without being incompatible).
    Once you are using the "Firefox" button ...
    Use the "Alt" key to view the menu bar (temporarily) containing File, Edit, View, History, Bookmarks, Tools, and Help. On Windows 7 and Vista, the menu bar was hidden by default in Firefox 4 and above. These menu items are more or less available under the "Firefox" button which has the most used of the built-in Firefox menu items available in a different format.
    To get back to having menus again. "Firefox" button -> Options (second column) -> (check) Menu Bar
    You can make '''Firefox 7.0.1''' look like Firefox 3.6.*, see numbered '''items 1-10''' in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 thru 8.0, look like 3.6)]. ''Whether or not you make changes, you should be aware of what has changed and what you have to do to use changed or missing features.''
    * http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface

  • I have a new 7th gen iPod, I have up loaded the latest iTunes version, I go to the music tab to sync, I click sync and the ipod starts to sync, but it does not sync all the music. It indicates all the songs on the screen, but not on the ipod

    I have a new 7th gen iPod, I have up loaded the latest iTunes version, I go to the music tab to sync, I click sync and the ipod starts to sync, but it does not sync all the music. It indicates all the songs on the screen, but not on the ipod

    I do not have the screen shown with the
    Pull down the “Store” menu and choose “Deauthorize This Computer”
    3. Now go back to the Store menu and choose “Authorize This Computer”
    options.

  • I have synched my laptop with 4 albums on to my new iphone5. when I chose a song on the phone the library wizzes through all the song titles then chooses one random. Same happens on the laptop too. Genuis is off. Exhausted all avenues.

    I have synched my laptop with 4 albums on to my new iphone5. when I chose a song on the phone the library wizzes through all the song titles then chooses one random. Same happens on the laptop too. Genuis is off. Exhausted all avenues.

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • What can be the max difference in cable lengths that we can have between the ISLs in a port-channel between MDS switches?

    Hello All
    What can be the max difference in cable lengths that we can have between the ISLs in a port-channel between MDS switches? Do we have any documentation?
    Thanks
    Chetan

     competitive solution instead recommends a distance variance of 30 meters or less among ISLs within a trunk. If the distance variance is greater than 30 meters, undesired and degraded performance will occur. For example, if a trunk has a distance of 100 kilometers, the competitive trunking solution allows a cable length variance of only 0.03 percent!
    ref;
    http://www.cisco.com/c/en/us/products/collateral/storage-networking/mds-9500-series-multilayer-directors/white_paper_c11-534878.html
    hth
    regards
    inayath
    **********PLZ dont forget to rate if this info is helpfull.

  • When I enter log on details in a website what I type appears in the address bar

    The first character I type appears in the website's log in space, the next characters start appearing in the address bar, so i cannot log in.

    Hello,
    Does this happen with all websites or just one?
    Please '''try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which temporarily disables most add-ons.
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Hello all.   Hope someone can help me. I recently downloaded some  updates for my imac.  Since doing this the computer starts up but I get no logon box.  The home screen opens but I can't open any programs or files. I've tried rebooting, no joy. Help!!

    Hello all..   I hope someone here can help.  I recently downloaded some updates to my imac.  Since then the computer starts but I get the home screen opening without the logon box.    I can't open any programs or files and if I click on the Safari tab it disappears from the dock.  I've tried rebooting with no joy.
    I contacted technical help at Apple and was told to hold down the ctrl and alt keys with two other keys, I think the S or P keys when powering up. This worked
    and the computer seemed fine but now the problem has reappeared.  Is there a way to removed downloaded updates from the computer or revert it to an earlier state?   Sorry for the long question. Hopefully one of you clever people can help.   Simon

    Clntxwhtby wrote:
    Hay thank you for your time . I do that every time I know I am online. It says that I am up to date . I have found that I have 10.4.11 version, and that my boot version is 10.6.2, and that my kernel version is 8.11.1.
    I have a hard drive icon on my desktop that says 10.6.2....
    I use to have iphoto, it doesnt open anymore, it says there is 1.2gigs on that disk.There are many things on here that are the same way. Where do I start?
    It's always good to go with one thing at a time and stay focused on that. Let's start with the OS you're running. Click on the Apple menu > About This Mac. What does it say under Mac OS X version ?

Maybe you are looking for

  • JSSE Performance 1.3.1 v. 1.4.1

    We are in the process of moving an application that uses JSSE SSL sockets from 1.3.1 to 1.4.1. It seems that socket creation time went through the roof by just switching the JDK's: Running on a LAN, in 1.3.1, after the initial socket, it takes <50ms

  • HP Laserjet 100 color MFP installati​on problem

    Hi, I have a problem with driver instalation for HP Laserjet 100 color MFP175nw. Instalation stalls at 85% and I get error message. I've tried to turn off processes through services.msc, deatcivate firewall and nothing helps.  Basically, I've tried a

  • How do I change the red bleed marks once I've created a file in illustrator?

    How do I change the red bleed marks around the art board once I've created a file in illustrator?

  • Cannot access class java.nio.ByteBuffer

    Hi All - I'm trying to compile a java sample code. I keep getting the error described in the subject line cannot access class java.nio.ByteBuffer; file java\nio\ByteBuffer.class not found I have un-ziped the java sdk 1.4.1 src.zip to a directory unde

  • Experience WD Drives

    I'm getting ready to by a Mac Pro, at the moment I am actually waiting till after MacWorld in case they release a updated version. Anyways, I plan on getting 3 additional drives, 1 specifically for time machine, 1 for Win Xp and the other two drives