How can i get a number of working days in a month PL/SQL

How can i get a number of working days in a month(excluding Saturday and Sunday) in a query in PL/SQL ?

Please do a search before posting
sql>
select count(*)
from(
select trunc(sysdate,'month')+rownum-1 dy
from all_objects
where rownum <= last_day(sysdate) - trunc(sysdate,'month')+1)
where to_char(dy,'fmday') not in ('sunday','saturday');
COUNT(*) 
23
Message was edited by:
        jeneesh
Please try yourself to change the query to one that doesn't use a subquery..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • How can I get the number pad to work (input characters) on my new plugin Mac full keyboard when connecrted to my mackbook?

    The number pad on by Mac USB keyboard does not work (no input).  I have updated the Mac keyboard drivers and that did fix the problem.  How can I get this keyboard to work when connected to my Powerbook?

    Do you have "Mouse Keys turned on in System Preferences / Universal Access ?
    Mouse Keys     Turn on to use the keyboard instead of the mouse to control your computer

  • HT5622 How can I get my iMessage to work again on my iPad mini?

    The iMessage on my iPad Mini quit working, although it still works on my iPhone.  When I look at my settings in messages, my phone number isn't there and it will not allow me any way to enter my phone number.  How can I get my iMessage to work again?

    Hello, Cubby21. 
    Thank you for using Apple Support Communities.
    Here are the best resources for troubleshooting issues with Message.
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Cheers,
    Jason H.

  • How can i get fallout 2 to work

    How can I get Fallout 2 to work on my mac book pro.  I just got my computer and the graphics are all messed up.  I tryed installing it on a friends computer and it worked.  He has a mac book pro that is only about 8 months old.  Why wont it work on mine?

    Ask your fellow MBP owners -
    MacBook Pro
    http://www.apple.com/support/macbookpro
    I hope none of you are getting it off torrents, always trouble in that dept.
    Maybe it needs a patch for yours and ATI 6xxxx mobility.
    It helps to know the specs, and model number (17"? etc)
    http://support.apple.com/specs/#macbookpro
    Graphics and video support
    AMD Radeon HD 6490M graphics processor with 256MB of GDDR5 memory on 2.0GHz configuration; or AMD Radeon HD 6750M graphics processor with 1GB of GDDR5 memory on 2.2GHz configuration
    Intel HD Graphics 3000 with 384MB of DDR3 SDRAM shared with main memory5
    Automatic graphics switching
    Dual display and video mirroring: Simultaneously supports full native resolution on the built-in display and up to 2560 by 1600 pixels on an external display, both at millions of colors
    so it could be getting messed up with using the Intel graphics - for all I don't know -  or you have 6490M with just 256MB

  • I have an iphone4 and my husband merge his numbers with mine and i think it was deleted can you tell me how can he get his number back on his phone

    have an iphone4 and my husband merge his numbers with mine and i think it was deleted can you tell me how can he get his number back on his phone

    Do you possibly mean the contacts have been merged?
    If so, where are each of you syncing contacts?  A supported application on the computer? iCloud or another cloud service? An Exchange server?
    WIthout details, it's difficult to offer specific resolutions.

  • I have an Retina display MacBook Pro with HMDI out port. I also have an HDMI to Component cable with Audio Plugs. How can I get HDMI out to work with this cable when plugged into the Component and Audio ports on my TV?

    I have an Retina display MacBook Pro with HMDI out port. I also have an HDMI to Component cable with Audio Plugs. How can I get HDMI out to work with this cable when plugged into the MacBook Pro and connected to the TVs Component and Audio in ports.

    Will not work.  To my knowledge, dual converting like that isn't supported.  The Mac must detect the connected video output device and that sort of info cannot be done across an analog component uni-directional connection.

  • My "Hanging with Friends" app keeps crashing whenever I try to open it. I have deleted and re-downloaded the app, restarted my iPhone, and even restored my iPhone all together, and nothing is working. How can I get this app to work again?

    My "Hanging with Friends" app keeps crashing whenever I try to open it. I have deleted and re-downloaded the app, restarted my iPhone, and even restored my iPhone all together, and nothing is working. How can I get this app to work again?

    Can you start Firefox in [[Safe mode]] ?
    You can also do a clean reinstall and download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
    Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    You can initially skip the step to create a new profile, that may not necessary for this issue.
    See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • I recently transferred my ipnone service from at&t to another carrier the phone worked fine until i tried to up it with itunes i now have a frozen itunes logo and a plug on the screens my phone is a iphone 3g how can i get my phone to work again?

    my ipone 3g is frozen with aitunes logo and plug after i tried to update it from apple. the phone worked fine even thou i changed carriers from at&t to Simple celleur. How can i get my phone to work?

    As AT&T has not officially unlocked your phone it must have been hacked to use another carrier.  So when you updated it has relocked itself to AT&T. There is no official unlock so this will happen anytime you update.

  • How can i get my wireless to work on my printer hp officejet pro 8600

    how can i get my wireless to work on my printer hp officejet pro 8600

    You'll get faster help w/this question by posting it in the Wireless forum...here:
    http://h30434.www3.hp.com/t5/Printer-Networking-and-Wireless/bd-p/Networking
    I am an HP employee.

  • I am a new ipod touch user; have gone through all the dowload/install stuff, plugged the device into my computer but ipod screen still shows plug in to tunes.  I am totally computer useless - how can I get my ipod to work, please?  Charles Jones.

    I am a new ipod touch user; have gone through all the dowload/install stuff, plugged the device into my computer but ipod screen still shows plug in to tunes.  I am totally computer useless - how can I get my ipod to work, please?  Charles Jones.

    You did install the latest iTunes (10.5) right?  If the problem was that iTunes does not see the iPod try:
    iPhone, iPad, or iPod touch: Device not recognized in iTunes for Windows
    or
    iPhone, iPad, iPod touch: Device not recognized in iTunes for Mac OS X

  • Hardware missing -AGP Graphics card. How can I get my FCE 4 working on the new computer? Cheers

    Hi I have just upgraded my computer to Mac OSX 10.6.7 now I cant open my FCE 4. Message reads, Hardware missing -AGP Graphics card. How can I get my FCE 4 working on the new computer? Cheers

    Thanks, just so I know we are talking about the same items please let me know - When you say "run Prokit" do you mean downloaded? Which I did. I dont have Prokit 4.0.1 if you are referring to that, do I need this first? Please explain what application name I am looking for if other than Prokit which is sitting in my "download folder" do I need to manually put it into the apps folder? Sorry if the questions are layman but this area is not a very strong point for me. Thanks for your help so far.

  • HT1338 How can I get my photo to work again? the app will not open on my desk top any more. I can not dave my photo on my desk top

    How can I get my photo to work again? the app will not open on my desk top any more. I can not dave my photo on my desk top

    Hello, Cubby21. 
    Thank you for using Apple Support Communities.
    Here are the best resources for troubleshooting issues with Message.
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Cheers,
    Jason H.

  • How can I get my speaker to work again?

    How can I get my speaker to work again? I've tried turning my phone off and on, hard reset, removing SIM, cleaning out dust, using the hair dryer, network reset, cleaning headphone port, made sure the phone was not on vibrate,and made sure "Change with buttons" was on. There was no liquid/moisture damage.  I was watching a video on youtube and all of a sudden my speaker went out. If I tap on the speaker it goes in and out but does not stay on/loud.

    Do you get sound in any apps e.g. in Music and Videos but not notifications or sound in other apps ? If you do get sound in Music and Videos then have you got notifications muted ? Only notifications (including games) get muted, so the Music and Videos apps, and headphones, still get sound.
    Depending on what you've got Settings > General > Use Side Switch To set to (mute or rotation lock), then you can mute notifications by the switch on the right hand side of the iPad above the volume switch, or via the taskbar : double-click the home button; slide from the left; and it's the icon far left; press home again to exit the taskbar. The function that isn't on the side switch is set via the taskbar instead : http://support.apple.com/kb/HT4085
    If you don't get sound in any apps then have you could try a soft-reset to see if you get sound after the iPad has restarted : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • How can I get my ipod to work with itunes?

    When I connect my ipod classic into my new computer it seems that itunes does not recognize it. How can I get my ipod to work with itunes? I'm afraid to disconnect my ipod because the display is saying Do Not Disconnect.

    1. Update iTunes to the latest version. Plug in your iPod. If iTunes still can't recognize it, then in iTunes in the top left corner click help> run diagnostics. On the box that comes up, check the last two things. Click next and it should identify your iPod.
    2. Click on your windows start menu. Type in "services". Click on it and when it pops up, on the bottom of it click on "standard". Now Scroll down to find "Apple Mobile Device" Right click it when you see it and click on "Start". When it has started, close iTunes and replug in your iPod and it should show up.
    3. Check the USB cable
    4 Verify that Apple Mobile Device Support is installed
    5. Restart the Apple Mobile Device Service and verify that the Apple Mobile Device USB Driver is installed.
    6. If you just want to add some photos, songs and movies from computer to your devices, you can use an iTunes alternative to do the job
    7. Check for third-party software conflicts.
    <Link Edited By Host>

  • Updated to IOS 5.0.1 and now if I tap on a game icon instead of opening the game a grayish color comes over it and nothing happens. How can I get my games to work again?

    Updated to IOS 5.0.1 and now if I tap on a game icon instead of opening the game a grayish color comes over it and nothing happens. How can I get my games to work again?

    Purplehiddledog wrote:
    I do backup with iCloud.  I can't wait until the new iMac is available so that I can once again have my files in more than 1 location without needing to rely solely on the cloud. 
    I also rely on iTunes and my MacBook and Time Machine as well as backing up to iCloud. I know many users know have gone totally PC free, but I chose to use iCloud merely as my third backup.
    I assume that the restore would result in my ability to open Pages and Numbers and fix the problem with deleting apps, but this would also mean that if my Numbers documents still exist solely within the app and are just not on iCloud for some reason that they would be gone forever.  Is that right?
    In a word, yes. In a little more detail.... When you restore from an iCloud backup, you must erase the device and start all over again. There is no other way to access the backup in iCloud without erasing the device. Consequently, you are starting all over again. Therefore, it would also be my assumption that Pages and Numbers will work again and that the deleting apps issues would be fixed as well.
    If the documents are not in the backup, and you do not have a backup elsewhere, the documents could be gone forever.

Maybe you are looking for

  • How to remove the old context files after upgrade to R12.1.1

    Hi, I upgraded 11.5.9 (DB 9.2.0.4) to 12.1.1 (DB 11.2.0.2). In the Applications Manager under AutoConfig menu, I noticed that I have 4 context files: 2 for DB Tier and 2 for Apps Tier. Apparently two of them are old from the 11i system. How can delet

  • Open URL in default Browser java.awt.Desktop was working...

    I downloaded Net Beans 6.5 with JavaFX 1 and now java.awt.Desktop isn't even an option for the imports, is there an alternative method to open URLs from my application?

  • Changing where the sent messages are stored

    Hi, I was wondering is there any way you can change where the sent messages are stored. I have switched from a few programs.. and there is a 'sent' folder and ' sent messages' folder on my folder list in addition to that of what mail is putting them

  • Where can I find the manual for Premiere Elements 10 to download?

    I just purchased and installed Premiere Elements 10 and really need the user manual to get up to speed. I cannot find it on the Adobe website and have had no luck finding it on the open web either.  Any ideas or a location?

  • Problem: Can't see photos on TV with video IPod

    I'm having a *** of a time getting my photos on the iPod to show up on my TV. I have one of those cables with the white/yellow/red ends made by Griffin for the iPod. I have an amp with the three color plugs, and a VCR which has the same. I get the au