1st pay of the year hours double ?

Hi,
This is my situation (happened in 2007, 2008)
Ex: For the 1st pay of 2008 I have this pay period (Dec 30, 2007 to Jan 12, 2008) payable on January 10, 2008
On my RT table :
Regular    $20.00    64 hours   $228.58
Regular    $20.00    64 hours   $1,371.42
Stat hol    $20.00    3.43 hours $68.60
Stat hol    $20.00   20.57 hours $411.40
My problem with this :
1 - For stat holiday it all ok because the total hours = 24 hours BUT for regular hours I should have 64 hours total and not two time 64 hours (note the amount are good )
2 - When I try to re-create this situation with simulation or a sand box I always have the right thing it look impossible to re-create this error but I know when it will be the 1st pay of 2009 I will have again the same problem with hours ?
Can you help me ?
Thank you,
Jean

select t.v_id, to_char(t.close_date, 'YYYY-MM-DD')
  from table_one t
where t.close_date between to_date('2010/1/1', 'YYYY-MM-DD') and to_date('2010/12/31', 'YYYY-MM-DD')
and   to_char(trunc (t.close_date), 'dy' ) = 'mon'
V_ID     TO_CHAR(T.CLOSE_DATE,'YYYY-MM-DD')
B     2010-01-04
C     2010-01-11
E     2010-05-03if you also want the first day of the year included as you mentioned.
select t.v_id, to_char(t.close_date, 'YYYY-MM-DD')
  from table_one t
where t.close_date between to_date('2010/1/1', 'YYYY-MM-DD') and to_date('2010/12/31', 'YYYY-MM-DD')
and   to_char(trunc (t.close_date), 'dy' ) = 'mon'
or  extract( month from t.close_date) + extract( day from t.close_date) = 2
V_ID     TO_CHAR(T.CLOSE_DATE,'YYYY-MM-DD')
A     2010-01-01
B     2010-01-04
C     2010-01-11
E     2010-05-03Edited by: pollywog on Nov 17, 2010 11:38 AM

Similar Messages

  • Number of the day in the year

    Hi,
    I have a requirement to add the number of the day in the year to the message and concatenate with HHMM as shown below
    like this :1205001...12:HH,05:MM; 001(1st day of the year)
    ex2: 0204365...02:HH;04:MM;DDD:365(last day of the year)
    ex3: 0209236..02:HH;09:MM;DDD:236:(236th day of the year)...
    How can i achieve this? any standard functionality?
    please advise.
    Regads

    Hi ,
                 Is it the current system date you wanna concatenate?  Anyways this can be achieved by message mapping using standard functions
    input--------------------------------------------------------------------\
                                                                                concat()--------> target field
    currentdate()--->Transformdate(yyyy/MM/dd,hh:mm:DDD)----------------------/
    If its not system date then you can input any field like "2012/01/02"  or change the format of input date transformdate (the first field).
    Regards
    Anupam

  • First day of year and next monday of the year

    Dear all;
    Given a year, how do you determine the very first day of that year and the next two mondays for that year...

    Hi,
    user13328581 wrote:
    Dear all;
    Given a year, how do you determine the very first day of that year and the next two mondays for that year...As Sayan hinted, you can use NEXT_DAY to find the next Monday after (not the same as) a given date.
    NEXT_DAY(trunc(SYSDATE), 'MON') next_mondayis the next Monday after today. (You may not need TRUNC in the example above.)
    For the Monday after January 1 of this year:
    NEXT_DAY ( TRUNC (SYSDATE, 'YEAR')
             , 'Monday'
             )If the year happens to begin on a Monday, this will return Jaunary 8, the 2nd Monday of the year; otherwise, it will be the 1st Monday of the year.
    For the 2nd Monday after New Year's Day, add 7 to the expression above.

  • Custom report to get the vacation hours for the coming year befor time eval

    Hi Gurus,
    We have this strange requirement for the vacation hours. We need to write a report that shows the remaining vacation hours for the coming year. My functional guys told me that we will get this after we run the time evaluation for each employee. but our requirement is to get these hours before time eval and write them to a flat file.
    They told me that we need to go through RPTIME00 program and get the logic where it calculates the vacation hours for the coming year. but the time schema is really big and to analyze this, it will take a long time (at least for me).
    So, did anybody came across this kind of situation? Please help me.
    Thanks,
    Srinivas.

    Do you need quota? There are standard reports to project quota PT_QTA10 - Display Absence Quota Information.

  • On iTunes 11, how can I access home sharing if the music is from a CD? Is there any way I can download these songs if (A) I no longer have the CD, or (B) I do not want to pay $25 a year for iTunes Match?

    On iTunes 11, how can I access home sharing if the music is from a CD on a different computer using Home Sharing? Is there any way I can download these songs if (A) I no longer have the CD, or (B) I do not want to pay $25 a year for iTunes Match?

    Yes, you can copy songs that you ripped from a CD to your Home Sharing computer.
    Turn on Home Sharing first on both computers.  To do that, go to File > Home Sharing > Turn on Home Sharing.  Enter your Apple ID and password.
    Now go to your computer that you want to copy the songs to and connect to your Home Share.  You can do that by clicking on the popover button located at the left top corner right below the play control buttons.  Click on it and scroll to the bottom until you see your Home Share and select it.
    Go to Music in your Home Share.  Select the songs that you want to copy in your Home Share and click Import at the bottom right corner.

  • In the libary of iPhoto I do have double pictures only in the year 2006. Can someone please tell me how to remove the double pictures. I did rebuilt the libary but that solution did not help me any further.

    In the libary of iPhoto I do have double pictures only in the year 2006. Can someone please tell me how to remove the double pictures. I did rebuilt the libary but that solution did not help me any further.

    I think the warning is very clear.
    What warning? Where do you say that this plan you suggest will lose at least some, and possibly a whole lot of metadata, plus  the original files of edited photos. This is significant dataloss. And you should warn people that this is the case.
    While your metadata and originals may not be important to you, that is not necessarily the case for other users.
    Fourthly, and last, cleaning the iPhoto library should be done at least once per year
    This is nonsense. The iPhoto Library has no need of "cleaning" and certainly not in any way that trashes a whole lot of data.
    I'm very impressed that you assess the application based on the sound of the name. It's not a common way to review applications, but I'm sure it has some merit.
    FWIW it has been recommended on this - and other - sites for many years and has proven safe and effective.
    Regards
    TD

  • If I am buying single app adobe premier pro by annual prepaid plan,after the after the end of the year subscription would it be possible to use the program further without updating or I should pay each year?

    If I am buying single app adobe premier pro by annual prepaid plan,after the after the end of the year subscription would it be possible to use the program further without updating or I should pay each year?

    Thanks
    2 бер. 2015 15:50, користувач "Peru Bob" <[email protected]> написав:
        If I am buying single app adobe premier pro by annual prepaid
    plan,after the after the end of the year subscription would it be possible
    to use the program further without updating or I should pay each year?
    created by Peru Bob <https://forums.adobe.com/people/Peru+Bob> in *Premiere
    Pro* - View the full discussion
    <https://forums.adobe.com/message/7243337#7243337>

  • Hi,i just bought the Creative cloud membership and i would want to know why is t one year policy and you payed alot of money and still pay for the next month? Annual means yearly right ? why do i have to pay another next month.

    Hi i just want to know i bought the creative cloud and photoshop and premiere. All those and it said annual meaning i have to pay for the next year right? But why did it said that i have to pay for the next month? What happens  when i didn't pay the next month ?

    You may buy an annual subscription and pay monthly, or a straight monthly subscription... and, being a subscription, if you stop paying the software stops working
    If you want a one time payment, and you can use 3+ year old software, go to Creative Suite 6

  • I am an exchange student for the year and I would like to by an iphone that i can use in France also, so I need an unlocked one but i don't want to pay to much for it... What should I do?

    I am an exchange student for the year and I would like to by an iphone that i can use in France also, so I need an unlocked one but i don't want to pay to much for it... What should I do?

    What do you mean what should you do?  Just because you don't want to pay too much for a phone, doesn't make the price any cheaper.  If you can't afford the price of an unlocked phone, then you don't, or can't, buy one.

  • I do not accept messages from 17 hours to 23 11/09/12 12/09/12 hours of the year. For the above period I have no messages. Please let that happen. Is it possible to recover lost messages?

    Good time.
    I do not accept messages from 17 hours to 23 11/09/12 12/09/12 hours of the year.
    Go through the iCloud in the mail, I also could not in the period.
    I sent a few reports of problems to iCloud.
    Now everything is restored. Thank you.
    I use several devices: PC Win 7 and iPad OS 5.1.
    The problem stalknulsya on both devices.
    However, during the above period I have no messages.
    Please let that happen. Is it possible to recover lost messages?
    Thank you

    Hi finecut,
    I believe this Mac Mail Help info may help:
    Backing up your mail
    You can back up your mailboxes to a CD or another disk. To do this, you can either copy the Mail folder in your Library folder or create an mbox file, a common format for storing mail messages.
    ▪ To save the contents of all your mailboxes, hold down the Option key and drag the Mail folder to your desktop or to another disk. The Mail folder is in the Library folder in your home folder (~/Library/Mail).
    Copying the Mail folder only backs up mail from POP accounts, or mail from an IMAP account that you've copied to On My Mac. When you are ready to restore the Mail folder, choose File > Import Mailboxes, select Mail for Mac OS X, and locate the Mail folder.
    ▪ To create an mbox copy of a mailbox, drag the mailbox from the mailbox list to your desktop.
    ▪ To create an mbox file with just some of your messages, select the messages, then choose File > Save As. In the Format pop-up menu, choose Raw Message Source, then enter a name and save the file.
    You can copy mbox files to CDs or to other disks. When you want to restore your mail, choose File > Import Mailboxes, select "Standard mbox files," and locate the files.
    hope that helps,
    littleshoulders

  • Why after I rented a movie and finish watching it and wanna watch it again with in the 24 hours, have to pay another rent fee to watch it?

    Why after I rented a movie and finish watching it and wanna watch it again with in the 24 hours, have to pay another rent fee to watch it? When I already paid the the fee to rent it for 24 hours?

    Start the video and slide all the way to the beginning. If the video isn't in your Movie app, then the rental expired.

  • Why do you make it almost impossible to communicate with you? Why do new customers I have to pay half the price I am paying since years? How can I change from cloud complete to just photoshop?

    Why do you make it almost impossible to communicate with you?
    Why do new customers have to pay half the price I am paying since years?
    How can I change from cloud complete to just photoshop?
    [email protected]

    Phone support | Orders, returns exchanges
    http://helpx.adobe.com/x-productkb/global/phone-support-orders.html
    Chat support - For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
    Creative Cloud support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html ( http://adobe.ly/19llvMN )
    Creative Cloud pricing and membership plans | Adobe Creative Cloud
    Manage your membership and payments | Creative Cloud
    https://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting -creative-cloud.html

  • I purchased the license of photoshop & lightroom for 1 year  I guess it has been double paid. I would like to cancel the 1 of double payment.  Where can i find the license?

    I purchased the license of photoshop & lightroom for 1 year  I guess it has been double paid. I would like to cancel the 1 of double payment.  Where can i find the license?

    You are likely going to have to contact Adobe Support directly by chat or phone when they are available.
    Manage your membership and payments | Creative Cloud
    https://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting -creative-cloud.html
    For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
    Creative Cloud support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html ( http://adobe.ly/19llvMN )

  • Why has my iCloud calendar deleted everything from 31st august back to beginning of the year but everything from 1st September is still there!

    Why has my iCloud calendar deleted everything from 31st august back to beginning of the year but everything from 1st September is still there! All the information was there this morning and now it's all gone!!

    Welcome to the Apple Community.
    Settings > Mail, Contacts, Calendars, scroll down to the Calendars section and change the sync option to something other than 'Events 1 month back'.

  • Dear sir thanks for new ios7;please see the calendar in hijri shamsi and compare it with original calendar! Why this difrence? Please compatible start of the years from 1st of farvardin month.

    Dear sir thanks for new ios7;please see the calendar in hijri shamsi and compare it with original calendar! Why this difrence? Please compatible start of the years from 1st of farvardin
    1392/01/01 = 21/march/2013

    Apple does not participate in this forum, it's only used by users like you.

Maybe you are looking for

  • How to de-activate a customer and put on hold if inactive from long?

    Hi all, My client needs that if a customer is in- active from last 6 months, it should be de-activated and put on hold by the system. Can we do it by creating a job at back-end? Regards,

  • Migo For GR using barcode data

    Hi All, I want to run MIGO or MIGO_GR for creating GR with respect to PO using input type in the format of bar code for recieved items against PO And MIGO sould run only for received items quantity only. Barcode contains following details when it dec

  • Why isnt the top row of my keyboard working

    my ipod touch (4th gen) was working perfectly this morning  later today i was playing vooleyball with my brother and i had set my ipod down in the grass  then when i went inside i was answering somw of my texts but the top row of my keyboard wasnt wo

  • Using ROW_NUMBER()

    Hi, I already know the following query is working ( will return 1762 rows) SELECT A.TNP_TRACK_ID, A.USER_ID, NVL(A.DELETED,0) DELETED, A.CREATE_TIME, A.DELETE_TIME,B.PRODUCT_CODE, C.LOGIN_NAME from MISPNA.TNP_TRACKABLE_201210 A,TMP_VRZ_LATEST_SOC B,M

  • Windows 8.1 was a waste of money for me.

    Windows 8.1 it's working as hell for me. My laptop it's an i7 @ 2.2 with 16GB DDR3 and a 4GB Nvidia Geforce 750m.  First of all al the drivers are properly instaled. I use internet via an Enthernet cable, the connection keeps discoenecting every 2 ho