How can i find out total no of sunday in the year

Hi Experts,
how can i find out total no of sunday's in the particular year. please can any one help how can i do that
Regards,
Arun

Just for fun (and in case this wasn't done to death in the other thread), the rule posted here states:
Most years have 365 days, but a leap year has 366 days. That adds up to 52 weeks (where each week is exactly 7 days) PLUS 1 or 2 additional days. The year 2012 has exactly 366 days.Now if the year starts on a Sunday in a non-leap year, you end up with 53 Sundays. Or if either of the first two days lands on a Sunday during a leap year, then you can also get 53 Sundays.>
which allows a calculation like this:
with test_data as
     ( select rownum + 1999 as test_year from dual
       connect by rownum <= 15 )
select test_year
     , case
          when first_day = 'SUN'
          or ( first_day = 'SAT' and leap_year = 'Y' )
             then 53
          else 52
       end as sundays
from   ( select test_year
              , to_char(to_date(d.test_year||'-01-01','YYYY-MM-DD'),'DY', 'NLS_DATE_LANGUAGE=ENGLISH') first_day
              , case extract(day from last_day(to_date(d.test_year||'-02','YYYY-MM'))) when 29 then 'Y' else 'N' end as leap_year
         from   test_data d );
TEST_YEAR    SUNDAYS
      2000         53
      2001         52
      2002         52
      2003         52
      2004         52
      2005         52
      2006         53
      2007         52
      2008         52
      2009         52
      2010         52
      2011         52
      2012         53
      2013         52
      2014         52
15 rows selected.

Similar Messages

  • How can I find out if I am eligible for the free upgrade?

    I have a current model MB Air, bought in January this year. How can I find out if I am entitled to the free Lion upgrade? I had a runt around the Lion app store page but couldn't find anything.
    Thanks in advance
    SR

    The only way to get it free that I know of is that you have to have bought a new Mac on or after June 6th, not January..... so it seems you'll need to pay for it.

  • My macpro runs slow with or without internet on..... How can I find out if something is running in the background?

    my macpro runs slow with or without internet on..... How can I find out if something is running in the background?

    Please boot in safe mode and test. Still slow? If you connect to a wireless network, you may have to connect with Ethernet in safe mode.
    After testing, reboot as usual (not in safe mode.)
    Mac OS X: Starting up in Safe Mode

  • I have a iphone 3GS and approxiamtely 4 gigs of spaces is taken up by the other categoy. How can I find out what is being stored in the other section to free up some space.

    Can anyone provide some insight on the problem that I am experiencing?  I have an IPhone 3GS.  Four of the 8 total gigs are taken up in the other category. I have attempted to delete apps numerous other things to free up space;  however, I cannot determine why so much of the device's capacity is taken up in the other category.  How can I find out what is stored in the other category to free up some of the device's storage capacity.

    Also read this . If what i put first doesnt fix it.
    https://discussions.apple.com/message/12525465#12525465

  • How can you find out if another VI running on the same computer and how can you find out the name of that VI?

    Suppose that several VIs running simultaneously on the same computer. How can I find out the names of the running VIs, from another VI?
    If the already running VIs are clones of the same basic VI, open and run with the option "Prepare to call and forget", how can I find out the names and index of each clone? 

    I had an application where I spawned (= ran with Start Asynchronous Call) multiple (reentrant) copies of VIs, and would occasionally "lose control" of them.  I needed a way to find all VIs that were running "Top Level" and stop them (so I didn't have to log off from Windows).
    I used the Application Property "All VIs in Memory" to get an array of (wait for it ...) All VIs in Memory.  I took each name, opened a VI reference to it (simply wire the name string in, as the VI is, by definition, "in memory"), looked at its VI Execution State, and if it was Run Top Level, Invoked the FP.Close and Abort VI Methods.  [To prevent the VI that did all this from "committing Suicide", I compared the name string with the current Call Chain, and did nothing if there was a match].
    I think you could adopt this idea to do what you need.
    BS

  • How can I find out total ETF for my account?

    I've been with Verizon for a long time now, but my husband and I are looking at consolidating a few things.  One of the things I'm having a hard time justifying with him is paying what I do for my phone.  He wants me to switch to his carrier.  Is there a way to find out the total ETF if I were to switch now? 

        It saddens us to see you want to switch providers PBBarb. Please know we certainly do not want to lose you. Allow us to provide some clarification regarding the early termination fee. I would like to thank Tikibar1 for providing great information regarding the early termination fee. If you currently have a smartphone the ETF is $350 minus $10 for each full month of your contract term that you've completed until you reach $120. If you purchased a basic phone, it's $175 minus $5 until you reach $75.
    I understand you are wanting to switch due to the loss of your employee discount. Was the discount removed because you are no longer employed through them? Have you checked to see if you qualify for a discount through your new employer? To check click, http://vz.to/1cKdW7l Also, have you viewed our new calling plans. This may help save some money each month. To view our calling plans, click http://vz.to/W24dla
    Thank You,
    MichelleL_VZW
    VZW Support
    Follow us on Twitter @VZWSUPPORT

  • How can I find out which DLL version is on the end-user's computer?

    I'm working on an installer program and I was wondering how I can find out what version of a DLL is on the end-user's computer, furthermore I would also like to find out if the file is locked in memory. Is there a way to do this? I figured natively there wouldn't be but does anyone know of a C++ wrapper or so?

    I'm not aware of any way of seeing the list. Have you had other computer's in the past and/or updated the OS on your current computers without first deauthorising them ? Deauthorising all (which you can only do once every 12 months) won't remove any content from those computers, it just means that you won't be able to use the account's content on a particular computer until you've reauthorised that computer

  • How can I find out which apps I have in the cloud

    I bought a new 5s and have been downloading apps I had previously on my 4s. When I search for apps I already had, there is a cloud icon when the "buy" icon usually is, and I am able to download them with ease. However, I know there are many more apps I that I had whose names escape me. How can I see a list of which apps are available in the cloud so I can pick and choose which ones I want to download again, rather than racking my brain trying to remember all of the apps I previously had?

    Hello sundayss,
    The following article provides steps for downloading your past purchases from, not only the App Store, but also the iTunes Store.
    Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/HT2519
    Cheers,
    Allen

  • How can I find out if I need a BIOS update?

    I have a Yoga 2 Pro. How can I find out if I need to update the BIOS?
    Solved!
    Go to Solution.

    If it ain't broken, don't fix it. This is expecially true with the BIOS.
    Unless you are trying to fix a particular issue and you believe a new BIOS will help, don't touch it. The BIOS is one thing that can brick a computer should something go wrong during the flashing process.

  • HT201303 How can I find out what my security answers are? I am trying to purchase an app on a new device and it won't let me without answering and I have totally forgotten

    How can I find out what my security answers are? I am trying to purchase an app on a new device and it won't let me without answering and I have totally forgotten

    Welcome to the Apple Community.
    You might try to see if you can change your security questions. Start here, change your country if necessary and go to manage your account > Password and Security.
    I'm able to do this, others say they need to input answers to their current security questions in order to make changes, I'm inclined to think its worth a try, you don't have anything to lose.

  • How can I find out the total number of gigabytes of all my photos in Iphoto?

    How can I find out the total number of gigabytes of all my photos in Iphoto?

    In the Event mode open the Info window at the bottom left  (Command+i or click on the blue i button).  Then select all of the Events.  The number of photos and size will be shown in the Info window at the right.
    OT

  • How can i find out if i have a bad codec affecting after effects?

    hi all, i'm having all kinds of problems with after effects cs4. the current problem i'm having is i'll be working on a project, it starts to slow down and become unresponsive, i try to save but then it crashes and everything i've done is lost. opengl is off but i don't think that's the problem because opengl isn't affecting any of my other programs like cinema 4d and i even tried taking out the opengl from the plugins folder but i was still getting opengl error messages with certain effects like the rotoscoping effect. i was wondering if maybe this might be a codec problem since i heard that ae loads codecs at start. how can i find out if a corrupted codec is affecting my after effects?
    after effects cs4
    amd turion 64 x2 mobile technology tl-62 2.10 ghz
    3 gb ram
    windows vista 32
    geforce go 6150
    total graphics memory: 1343 mb
    dedicated graphics memory: 128 mb
    system video memory: 0 mb
    shared system memory: 1215 mb
    i'm pretty much desperate to get this working as it's essential to my work flow and i can't afford to get a new computer right now (i should have bought a mac, now i know) so i'll try anything if you have any suggestions. thanks!

    >how can i find out if a corrupted codec is affecting my after effects?
    You remove them all! ;-) I think you are going about this the wrong way.
    a)If you ever installed any third-party CoDecs manually, they will be listed in the "Add or Remove Programs" section or have an uninstaller.
    b)If those CoDecs were auto-installed e.g. via a web-browser, they will leave traces in the extension lists or even appear as separate entries somewhere as well.
    c) If the CoDecs were part of a program, then by all rights, you really should know which programs those are and know how to remove them.
    Failing that, simply uninstall Quicktime completely. Reinstall it from scratch. Likewise, manually download a full install of Windows Media Player and reinstall it using the "Repair" option. Everything else is pure specualtion - AE may scan your CoDecs on startup, but if you never import any footage using them, they will not be initialized and not cause trouble.
    And honestly: That Mac talk is not worth a dime. Final Cut Pro alone comes with 30 or so extra CoDecs, many of which have been known to be just as troublesome to use with Adobe products and you can encounter the same situation easily any time...
    Mylenium

  • How can i find out the file size of a Keynote on an iPad please?

    How can i find out the file size of a Keynote on an iPad please?

    I think a rule of thumb is what you're looking for.
    Full bandwidth CD audio (AIFF): about 10 MB/min
    Apple Lossless: about 5 MB/min
    MP3 @ 256k: about 2 MB/min
    MP3 @ 128k: about 1 MB/min
    Of course the MP3 file size is exactly linear with bit rate.
    As for sound quality:
    Apple Lossless is, as the name says, lossless.
    MP3 @128k: fine for listening in the car or the kitchen etc. If you have an audiophile sound system, this will remind you why you spent all that money.
    MP3 @256K: barely distinguishable from CD on very good equipment.
    MP3 @320K: probably not distinguishable from CD.
    I presume that since you're talking about importing classical CDs these are ones you own. Remember you can always do it again if you need higher fidelity or if better technology comes out. I import most CDs at 128k, since most of my MP3 listening is in the car, or walking, or as background. And I can always play the CD if I want to sit and listen.
    The logic for purchased music is totally different -- you probably won't get to upgrade that without buying it some different way. So buying 128k MP3s (or AACs) is something you'll probably regret later. Buying 256k MP3s is a lot less problematic.

  • How can I find out what's using storage on iPhone 4s

    Hi,
    My daughter's 8GB iPhone4s is showing 4.7gb used space and only 430Mmb free - but when we go to Manage Storage the total of all items listed there is less than 1gb.
    How can we find out what is hoarding all of this space, and why is an 8gb device only showing just over 5gb in total space (used and free)?
    We've just upgraded to IOS 8.1.3, but also had the same problem with IOS8

    Connect the iPhone to a computer and use iTunes to check its storage. Do you see more than 1-2GB of Other? If so, the phone must be restored to correct that issue.
    5GB of total storage sounds about right for a phone advertised as 8GB. A portion of the space is used for iOS and included apps and some goes "missing" due to the way the device calculates storage.
    ~Lyssa

  • How can I find out how much space left on a hard drive connected to an airport?

    When I go into the finder and choose the AirPort, the external drive that's hooked up to the airport shows up just fine, though its icon is a folder, not a "hard drive" icon. But if I try to do "info" on the drive, it says "zero KB on disk." I know this isn't true, since my entire iTunes library is on that disk.  How can I find out how much room is left on that hard drive?

    You should be able to see both the total capacity and remaining available on the Disks tab within the AirPort Utility.
    ref: AirPort Utility > Select the Extreme > Manual Setup > Disks > Disks tab, and then, click on the shared disk volume name.
    Although the following is an AirPort Utility screen-shot of a Time Capsule, it should look identical for the AirPort Extreme.

Maybe you are looking for

  • I turned off icloud on my calendar and it deleted my entire calendar.  Is there a way of getting that back?

    I turned off icloud on my calendar and it deleted my entire calendar. I did this because I wanted to add a sport site to auto add my daughters hockey schedule.  For some reason it was not accepting this URL?   Is there a way of getting my calendar ba

  • Stickies not opening!

    Hi everyone, I cannot get my stickies program to open! It will try to open (I can see it bounce around on my dock) and then it disappears after a few moments. I've already tried deleting the com.apple.stickies.plist file to see if that would help (as

  • Automatic Incoming Payments

    Hi, My client needs a solution where he is able to directly make a collection (direct debit) from his customer's account. The customer would have given a standing instruction to his bank authorising the direct debit. My question is whether I should u

  • Sum Across Group

    Hello! I am running into a curious situation with Reports and I have been unsuccessful in trying to resolve it. Here is the description. I have a group (Job Category) that has a subgroup (Gender) which has a subgroup (Salary Range). I am running the

  • HT1766 Using computer to store apps. Can I delete an app on the phone without it deleting on the computer?

    I want to "move" apps to the computer and delete them on iphone.  I want to make sure future backups DON'T delete the apps I'm "storing" on the computer just because I deleted them from the phone.  I am afraid that the "sync" option will assume I don