Find the no of weeks in a period

Hi Experts,
Could any one let me know the function module to find the no of weeks in a period ?
Regards,
Prem

You can use DATE_GET_WEEK  with from and to dates and subtract (+1)
Regards

Similar Messages

  • How to find the 1(one week) performance of the system

    HI every one
    in my recent interview he has asked this question
    i have checked the sar options through man pages but i couldnt understand ...
    can any one please tell me how to find the on week performance report of a system......
    please tell me how i can find the performnace reports
    Thanks in Advance

    Hi.
    crontab -l sys
    Show, activated or not collecting of performance statistics.
    man sa1
    The shell script sa1, a variant of sadc, is used to collect
    and store data in the binary file /var/adm/sa/sadd, where dd
    is the current day.
    So you need found file with correct date in /var/adm/sa
    Regards.

  • Finding the number of weeks or months in a Date range

    I have a couple of text boxes that a user inputs a start date and an end date. What I want to know is there a way to tell the number of months or the the number of days in this date range?
    For example:
    Start Date = 02/12/2004
    End Date = 03/12/2004
    The number of weeks = 4 //May not be accurate, just showing an example.
    The number of months = 2

    For month, I would define it as the dates that fall in the actual calendar month. If my start date input from the user is 1/21/04, then I want to define a time period of 1/21/04 through 1/31/04 to be included in the first month. I know that it is not an actual month, but I am trying to make graphs based on monthly performance.
    For weeks, I want the days to run Sunday through Saturday. If the first date starts on a Wednesday, then I want my first week to include days only Wednesday through Saturday.

  • Can't find the last three weeks of back-ups on my Time Machine -- HELP!

    Today I purchased a new 17" macbook pro to replace one that crashed over the weekend. I did a complete restore from time machine. When it was done, I realized it only restored files from 3.8.2010. It's 3.29.2010. How can I find the last 21 days? I know that time machine backs up regularly, everyday. Just can't seem to find the last 21 days. Thanks to anyone who can help!

    Hi, and welcome to the forums.
    Just how did you do the restore?
    If you did a complete restore from backups, you should have seen a list of backups, and selected the most recent one.
    If you used either +Setup Assistant+ or +Migration Assistant,+ it would have used the last completed backup.
    Have you checked via the "Star Wars" display, to see what the dates of your backups were? (Since you're now on a different Mac, you may have to manually mount the sparse bundle and use the +*Browse . . .+* option in #17 in the Frequently Asked Questions *User Tip,* also at the top of the +Time Machine+ forum).

  • Function module to find the fiscal periods

    Hi Guys,
    Please let me know if any of you are aware a function module which determines the fiscal periods between two dates.
    (Begin and end dates.) 
    Thanks.

    Hi Sai,
    From your post, I understood that you want to find how many periods are there between two dates, right.
    I am not sure whether there is a direct function module for this.
    But you can try this.
    Use the FM DATE_TO_PERIOD_CONVERT to get the Fiscal Year and Period from a date. You have to input the date and Fiscal variant.
    Using this you can determine the Fiscal year and Period for both the dates.
    Then you can find the difference of these two Fiscal Periods.
    This thread will be helpful for you to find the Difference of two fiscal periods
    Urgent : Difference of two fiscal period
    Hope this helps,
    Regards,
    Hari.

  • Did they take out the free section, you know where they might offer a free episode/song/video/etc in one spot (or at least did they for Canada)? I can find the english song of the week, but that is it...

    Did they take out the free section, you know where they might offer a free episode/song/video/etc in one spot (or at least did they for Canada)? I can find the english song of the week (I used to enjoy browsing both the english and french), but that is it...

    Nevermind. For some reason it loaded wrong/poorly/? It was back after I closed itunes down and re-opened it.
    Thanks though

  • I have a iphone 4s with ios 8.3 and I used to be able to sync only a week or two of emails from outlook email.  Now it won't let me do that and it syncs all my inbox.  How can I change it back to sync less.  I can't find the right place.

    I have a iphone 4s with ios 8.3 and I used to be able to sync only a week or two of emails from outlook email.  Now it won't let me do that and it syncs all my inbox.  How can I change it back to sync less.  I can't find the right place.

    I understand, as that was the place I would change it before 8.3 but now that option of Mail Days to Sync is not available?  Any idea why that would be?

  • I use light room on both my desktop and laptop, syncing catalog via google drive. I have been working on the desktop all week, editing a collection in lightroom. this morning i opened the program however to find only an old version of the catalog. All wor

    Hi all
    So I have lightroom on both my laptop and desktop and sync catalog through google drive.
    I have been working on the desktop all week on edits of high res scan in lightroom.
    Today i opened the program to find everything i have done for a week isn't there.
    Help.
    I feel it has synced to the last time i opened on my laptop and lost what ive on on the desktop.
    any help much appreciated.
    p

    I have no idea what happened, why you are seeing what you are seeing.
    My only guess at finding the missing work is to look under File->Open Recent on both computers.
    I do know that if you aren't making regular backups of your catalog file, and relying on synchronizing catalogs from one computer to another via the cloud, you are living very dangerously, and now you are possibly going to pay the consequences of not making regular backups.

  • FM to find the number of fiscal weeks in a year

    Hi All,
    Can anyone pls give me the  function module to find the number of fiscal weeks in the given year.
    Thanks,
    Rajani.

    Eric Cartman wrote:
    Ámit Güjärgoüd wrote:
    > > Eric,
    > >
    > > Did you actually enjoy 2004 ?
    wasn't bad...
    do you mean, there were 53 weeks in that year? because I have concern, how it is actually counted...
    wasn't bad... :)
    Thats sounds Sweet
    do you mean, there were 53 weeks in that year?
    Yes
    because I have concern, how it is actually counted...
    If in a leap year fabruary falls in 5 weeks then that is the only possibility for 53 weeks
    Cheers
    PS:But No logic would be applied in this case

  • ITunes App Store won't let me buy anything. Keeps saying the credit card info is wrong. BUT IT'S NOT. This has been going on for weeks, I can't even find the effing button to contact Apple. Jesus Christ.

    I can't buy or download anything. It keeps whining that the data is wrong, both on iPhone and iPad. It's the right info but it keeps whining about "payment method declined" or something? I dunno, some say it fixes itself after a few days. But it's been like this for a few weeks now. :/
    I can't even find the f**king button to contact Apple. What the ****. :/

    apple should really make that clear, thats the reason i bought the points for in the first place, to get apps and the update. man this *****, ok so pretty much if i don't have a credit card then im screwed right? i can't get the update or get apps unless they are free? are there app cards or something i can buy in order to buy them? kuz i can't get a credit card and i want to get this stuff, and if im not mistaken isn't this bad? its stopping ppl from spending money on this stuff, its cutting profit, if you could use it for all of it then im sure ppl would buy them alot more, kuz its "re-donk-u-less" that they don't have an easier way to get the stuff like apps and upgrades unless you hav a credit card. idk man, is apple going to change that anytimes soon?

  • How to find out the rows inserted between a time period.

    Hi,
    Please help me to solve this.
    Table - emp.
    Colmns - empno(Primary Key),ename, mgr
    How to find out the rows inserted between a time period.
    For eg:- Between 02-Oct-2006 1 PM and 03-Oct-2006 2 PM.
    regards,
    Mathew.

    Hi,
    Maybe work:
    For each row, ORA_ROWSCN returns the conservative upper bound system change number (SCN) of the most recent change to the row. This pseudocolumn is useful for determining approximately when a row was last updated. It is not absolutely precise, because Oracle tracks SCNs by transaction committed for the block in which the row resides
    e.g.:
    SGMS@ORACLE10> create table test(cod number);
    Table created.
    SGMS@ORACLE10> insert into test values (1);
    1 row created.
    SGMS@ORACLE10> insert into test values (2);
    1 row created.
    SGMS@ORACLE10> commit;
    Commit complete.
    SGMS@ORACLE10> insert into test values (3);
    1 row created.
    SGMS@ORACLE10> commit;
    Commit complete.
    SGMS@ORACLE10> select SCN_TO_TIMESTAMP(ora_rowscn),ora_rowscn,cod from test;
    SCN_TO_TIMESTAMP(ORA_ROWSCN)       ORA_ROWSCN        COD
    06/11/06 08:56:56,000000000         727707205          1
    06/11/06 08:56:56,000000000         727707205          2
    06/11/06 08:57:05,000000000         727707210          3Cheers

  • How do I find the screen with my personal iPod (my name's iPod) so I can download from my purchased or free songs/pods from my computer? My iPod has opened to that for 3 years and this week I can't find it: not on purchased page or on Apple store page.

    QUESTION from an American in India:
    How do I find the screen with my personal iPod (my name's iPod) so I can download from my purchased or free songs/pods from my computer? My iPod has opened to that for 3 years and this week I can't find it: not on purchased page or on Apple store page.

    See:
    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • Firefox periodically drops my Verizon/Yahoo email site indicating it cannot find the server. Verizon alledges there are no server problems.

    My email page will crash and the message received is:Firefox can't find the server at us.mc844.mail.yahoo.com. Repeated reloading does not help. After a period of time from 5 minutes to an hour the site can be accessed and is Ok for several days. The the problem reoccurs several times in the same day. When my email provider is contacted they indicate no server problems.

    Report your error messages so your peers, like me, can make suggestions..
    Official recommendations are on http://help.yahoo.com/l/us/verizon/mail/ymail/basics/mail-12859445.html NOTE THE URL's Stick with them if using YAHOO.  I have not found a newer recommendation for pop.yahoo.verizon.net that you mention, and the help page was updated this month.
    Note some have had trouble with missing intermediate certificates so get encryption errors.  Shouldn't happen (except if you are missing the root certificate, which is your responsibility),  but can be fixed by installing manually.
    Some have reported needing to specify [email protected] rather than just userid, I believe on the SMTP side.  Normally you specify only userid and password without the @verizon.net.

  • How can i find the 1st business day of the week ?

    Hi,
    How can i find the 1st business day of the week excluding saturaday,sunday and holidays? i have holiday table which contains the columns name HolidayDate and HolidayDescription.
    Ex:
    10-1-2011 is monday(i.e) 1st business day.check If it is in holiday table,then return the result as 11-1-2011 else return the result as 11-1-2011(which is the first business day of this week).
    Can anyone tell me the Query to solve it?

    Does this help:
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (SELECT TRUNC(SYSDATE,'IW') holiday FROM dual
      2  UNION SELECT TRUNC(SYSDATE + 7,'IW') from dual)
      3  SELECT MIN(Dat),wk FROM
      4  (SELECT TO_CHAR(dat,'IW') wk,dat FROM
      5  (SELECT dat + lvl dat FROM
      6  (SELECT TRUNC(SYSDATE,'RRRR') dat, level - 1 lvl
      7  FROM dual
      8  CONNECT BY level <= TO_DATE('31-DEC'||TO_CHAR(SYSDATE,'RRRR')) - TRUNC(SYSDATE,'RRRR'))
      9  ) x
    10  WHERE x.dat NOT IN (select holiday from t))
    11  WHERE TO_CHAR(Dat,'DY') <> 'SAT'
    12  AND TO_CHAR(dat,'DY') <> 'SUN'
    13* group by wk
    SQL> /
    MIN(DAT)  WK
    04-JAN-11 01  -- since 03-JAN-2011 is in holiday list, 04 is taken as first business day of first week
    11-JAN-11 02  -- similar to week 1
    17-JAN-11 03
    24-JAN-11 04
    31-JAN-11 05
    07-FEB-11 06
    14-FEB-11 07
    21-FEB-11 08
    28-FEB-11 09
    07-MAR-11 10
    14-MAR-11 11
    21-MAR-11 12
    28-MAR-11 13
    04-APR-11 14
    11-APR-11 15
    18-APR-11 16
    25-APR-11 17
    02-MAY-11 18
    09-MAY-11 19
    16-MAY-11 20
    23-MAY-11 21
    30-MAY-11 22
    06-JUN-11 23
    13-JUN-11 24
    20-JUN-11 25
    27-JUN-11 26
    04-JUL-11 27
    11-JUL-11 28
    18-JUL-11 29
    25-JUL-11 30
    01-AUG-11 31
    08-AUG-11 32
    15-AUG-11 33
    22-AUG-11 34
    29-AUG-11 35
    05-SEP-11 36
    12-SEP-11 37
    19-SEP-11 38
    26-SEP-11 39
    03-OCT-11 40
    10-OCT-11 41
    17-OCT-11 42
    24-OCT-11 43
    31-OCT-11 44
    07-NOV-11 45
    14-NOV-11 46
    21-NOV-11 47
    28-NOV-11 48
    05-DEC-11 49
    12-DEC-11 50
    19-DEC-11 51
    26-DEC-11 52
    52 rows selected.
    SQL>

  • I have acrobat professional and photoshop elements. New Mac arrives next week how do I move these from the old machine  as I cannot find the product codes

    I have acrobat professional and photoshop elements. New Mac arrives next week how do I move these from the old machine  as I cannot find the product codes

    You cannot move or copy software between computers. You must reinstall. You will need the serial number. Check your account details on Adobe's site if you registered.

Maybe you are looking for

  • Songs won't delete from iphone

    I've absolutly had it.  I have searched and done enough of that to find a solution to this problem. I directed a musical 2 years ago and I have the soundtrack still on my iphone.  The problem is, I don't want it on my iphone any longer.  I unchecked

  • HT1853 my ipod will no longer syn songs from my library why ?

    My ipod has been working fine for the last 2 yrs. but now when I purchase Itunes and try to drag them to the playlists on my Ipod it says there is a Sync error. Please help !

  • IPhone 5s wont turn and displaying no sign of life?

    Hello i recently brought an iphone 5s second hand and fitted a new screen which has been done properly but before i fitted it , still did not work so i did a Hard reset and held down power button and the home button with  it plugged in to the wall an

  • TS2580 Why do I get incorrect password message when trying to publish IWEB

    I keep getting the message and my host says everything is correct from their end and shows that way but when i try to publish a new page on IWEB I keep getting a message that i have an incorrect password.......I don't know what to do

  • How to convert well format xml in coldfusion?

    Hi, I am consuming asp.net webservice in coldfusion.It returns xml but it is not in wellformat. Please suggest me how to convert to well format xml. Advance Thanks,