Regarding the hours of work for a month

Hi all

I have 3 elements of page (2 are date picker & 3rd is part of text box).

Now when the user insert date in 1st element datepicker as "2009-06-16" and in 2nd item datepicker as '2009-07-15', in 3rd element on the page (which is the text box) should automatically caluated < b > < /b > 22. As 22 are the working days number btw "16/06/2009 and 15/07/2009" excluding weekends.

I did it by calculated in SQL Server 2005 Mgmt Studio, something like that: -.

----------------

declare @fromdate datetime
declare @todate datetime
declare @day int
declare @count int
Set @fromdate = 16 June 2009"
Set @todate = July 15, 2009"
Set @day = 0
the value @count = 0

While (@fromdate < = @todate)
Start
Set @day = (select datepart (day of the week, @fromdate))
If (@day > = 2 and @day < = 6)
Start
the value @count = @count + 1
end
Set @fromdate = @fromdate + 1
end

SELECT @count

------------------------

and the result has been to < b > < /b > 22 that was identical to my forced.

Now my question is how I should go in APEX as the number 22 is caluated by the shape itself, must I write pl/sql process or using JS?

Who will be the best professional way?

If another way please let me know.


Thank you

I appreciate your suggestion n answers.




Kind regards
Kumar

http://Apex.Oracle.com/pls/OTN/f?p=4000:4150:1341370706053005:no:1, 4150:FB_FLOW_ID, FB_FLOW_PAGE_ID, F4000_P1_FLOW, F4000_P4150_GOTO_PAGE, F4000_P1_PAGE:40933, 1, 40933, 1, 1

Bodin/demo/demo

Tags: Database

Similar Questions

  • My newsletters stopped arriving after that I was leaving the network to work for two months. How do I start again?

    I took leave my network at work because I was sick for two months, I'm back now, and I find that I do not receive my subscription newsletters.  How to resume again?

    Ask people at work!

  • Procedure for the number of working days per month when the user enters to and from everyday

    Hi all

    Can provide you a solution to this - procedure for the number of working days per month when the user enters and days.

    Suppose that the user enters November 18, 2014 start date and date as November 23, 2014.

    The output should display

    Count: 4

    November 18, 2014 Mar

    Sea 19 November 2014

    November 20, 2014 game

    Fri November 21, 2014

    It will exclude Saturday and Sunday.

    Hello

    Here is an example of removing dates Saturday and Sunday:

    with days as(
         select (trunc(sysdate, 'YEAR') + level) as col from dual
         connect by level < 365
    )
    select * from days
    where trim(to_char(col, 'DAY', 'NLS_DATE_LANGUAGE=ENGLISH')) not in ('SATURDAY', 'SUNDAY')
          and col between to_date('18.11.2014', 'DD.MM.YYYY') and to_date('30.11.2014', 'DD.MM.YYYY')
    order by col;
    

    Cheerz,

    Stako

  • Months ago, I created a free account but now the Church I work for a software how to install help it serial number?

    Months ago, I created a free account but now the Church I work for a software how to install help it serial number?

    What software you want to install?

    If it is old software that comes on a DVD, then install from the DVD and enter the serial number when prompted.

    Otherwise, you can download applications and install - this document provides more details. You can not require a serial number but must sign the software with an Adobe ID, which has the appropriate right.

  • Iconia S/N is not found; support can be contacted; machine worked for three months. == No, two.

    Can anyone tell me please where I can find the S/N for the Iconia Windows Tablet? Or a way to contact support. A way to contact support. The machine was a payment for a trial in collective action and worked for two months and now won't turn on. Knowledge database tells me that I can find on a label (no label) or turn it on. If I could turn it on, I wouldn't need support.

    And Acer seems to give me no way to contact them about this product. More frustrating than precious: here's your machine: it won't work within two months, and we will not give you a way to contact us. Good day.

    Sorry all... I go back to the first question: any way to get a serial number out of this thing, or otherwise contact acer support?

    [edited to conform to the guidelines]

    I think that yours is probably W4 or W3. They both have a microSD and microHDMI microUSB slot.

    I think there are three distinct possibilities. The battery may become too discharged in storage to be able to load, the charger may be bad, or the battery may be bad. I can't remember if these models will directly run on the charger or not, but it is looking at the possibility. If they're going to sink the charger then we have reduced to the charger (possibly charge connector).

    If they will not work with just the charger then you test the output of the charger. You can use a wire wrapped around the probe on you VOM to reach the center of the connector of the charger.

    In my view, there are videos from Youtube with the info on battery recharge/boost one too discharged, but I would seriously look into your security situation before trying. No need to get your fingers inside if it is replaceable in the warranty.

  • I had the creative cloud now for 4 months, but it says I don't have a subscription when you try to use PS, but I connect to Adobe and I do?

    I had the creative cloud now for 4 months, but it says I don't have a subscription when you try to use PS, but I connect to Adobe and I do?

    I have download it again and he takes me to a page where it wants a serial number, I'm something wrong or missing something?

    Your subscription to cloud shows correctly on your account page?

    If you have more than one email, you will be sure that you use the right Adobe ID?

    https://www.adobe.com/account.html for subscriptions on your page from Adobe

    .

    If Yes

    Some general information for a subscription of cloud

    Cloud programs don't use serial... numbers you, connect you to your cloud account paying to download & install & activate... you may need to sign out of the cloud and restart your computer and log into the cloud for things to work

    Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud

    -Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html

    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html

    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html

    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html

    -ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp

    -http://helpx.adobe.com/creative-cloud/kb/license-this-software.html

    .

    If no

    This is an open forum, Adobe support... you need Adobe personnel to help

    Adobe contact information - http://helpx.adobe.com/contact.html

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    -Select your product and what you need help with

    -Click on the blue box "still need help? Contact us. "

  • Hello, I bought the package creative cloud for a month, had a complete trial version. Already move forward payment, but I use coudnt (how can I instal)

    Hello, I bought the package creative cloud for a month, had a complete trial version. Already move forward payment, but I use coudnt (how can I instal)

    Hi Victoria,.

    Please check the help below document:

    Applications creative Cloud back in test mode after an update until 2015 for CC

    Kind regards

    Sheena

  • I have an After Effects project and I want to re-do edge animate. What is the best way work for this?

    I have an After Effects project and I want to re-do edge animate. What is the best way work for this?

    Hello

    Sorry, but you will probably need to rebuild everything in Animate. Although their timelines are similar in some ways, there is no interoperability between After Effects and animate dashboard.

    Kind regards

    Joe

  • iPad flashing constant Air... can't even thug off the coast.  Upgrade the software, but worked for a while.  Can't do anything else.

    iPad constant Air flashing... cannot even turn off.  Upgrade the software, but worked for a while.  Can't do anything now.

    MY husband fixed this problem by pressing power and home buttons.  Duh...

  • I only use CC a year. Can I subscribe for a month and the following year again for a month? (So I don't have to spend so much money..)

    I only use CC a year. Can I subscribe for a month and the following year again for a month? (So I don't have to spend so much money..) I'm talking abozt Dreamweaver CC because I need to renew the site once a year. THX.

    Pricing plans and creative Cloud membership | Adobe Creative Cloud

    You can subscribe to DW for one month per year if you wish.

    Simple subscription App, monthly Plan

  • I have just replaced my computer and now need to reinstall Dreamweaver. I can't for the life of me find anywhere on the Adobe site to download again. Should what steps I take to download and reinstall the software I pay for every month?

    I have just replaced my computer and now need to reinstall Dreamweaver. I can't for the life of me find anywhere on the Adobe site to download again. Should what steps I take to download and reinstall the software I pay for every month?

    Download/install the desktop application, connect and install applications subscription.

    Creative cloud to desktop
    https://helpx.Adobe.com/creative-cloud/help/creative-cloud-desktop.html

    Sign out, sign in | Creative office cloud app
    http://helpx.Adobe.com/creative-cloud/KB/sign-in-out-creative-cloud-desktop-app.html

    Help of activation & deactivation
    https://helpx.Adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html#a ctivate-how-to's

    Install, update, or uninstall applications
    http://helpx.Adobe.com/creative-cloud/help/install-apps.html

    Install creative Cloud applications
    http://TV.Adobe.com/watch/CS6-creative-cloud-feature-tour-for-video/installing-desktop-app s-of-creative-cloud.

  • The tolerance setting works for the "Convert anchor point tool"? Are there other ways?

    Hello
    I wonder if the setting "tolerance"in the preferences only works for the arrow tools?» I put it to 8 pixels and it seems OK for these tools, but when I use the tool 'Convert Anchor' point it is incredible difficult to hit a point for me. It seems that I have to hit a point exactly one pixel, which is hard with a screen high resolution.
    My PC keeps beeping all the time and I'm getting crazy on this subject...
    It seems that the framework of tolerance doesn't work here, I'm right? There are other parameters that could help me to work with this tool?

    Sorry if this is the kind of a beginner question, I have much experience with PS and LR, but not so much with Illustrator (and I couldn't find anything useful in the internet).

    Thank you
    Raschko

    I agree, it is sometimes difficult to click on the sweet spot. Here are 3 proposals:

    1. Pay attention to the cursor icon. This will change when you are on a point anchor or direction.
    2. Try to turn on 'bearings commented. They can be a nuisance, but they are sometimes useful.
    3. Use the button "convert" on the Options bar. They may take a little longer but they are full-proof, moreover, you can convert or remove several selected points simultaneously using this method.

  • RDP in the remote computer works for only 1 of the 2 local machines almost identical

    I have a laptop and desktop at home, and I'm eager to distance in my work machine. The laptop can RDP into my machine to work very well, but I was not able to understand why my office cannot. I was even able to RDP in my work from my office machine in the past (a few months ago), but now he can't. Here is the error message I get on the desktop after the RDP authentication will fail; the laptop can connect correctly by using the same credentials.

    Both are running Windows 7 Ultimate 64 bits.

    Both use supplied with windows Remote Desktop connection application.

    Both access to the internet via a wireless connection (the desktop equipped with a wireless adapter computer) connected to the same router.

    Both are fully updated with updates of Windows and run the same antivirus.

    The two successfully connect to a VPN software that connects very well and uses the same network as my work computer credentials.

    Both must connect using the same login information, which are the same login information that I use at work.

    On the desktop, I tried and failed with the following text:

    Disabling the Antivirus and Windows Firewall.

    Copy and run the RDP file saved to the laptop on the desk.

    Reinstalling the VPN software on the desktop.

    The only difference between the two that I can think is that my office does not require a password to connect; but it doesn't stop me of remoting in the working computer in the past, and my computer configuration has changed very little since then.

    What else can check to figure out what could be allowing the laptop through, but deny the Office? Any help is appreciated, because I prefer to use my home office instead (two monitors, better equipment, etc.).

    I was able to find a workaround for this problem, well that is not ideal. It seems that my work computer and desktop home somehow at some point got the same network IP address (192.168.1.106, at least by trying to connect to my work machine). Even if not connected via VPN software, they both have the same network IP address. That's why I was able to connect to another computer on the network, but not my machine specific work; My Home Office thought he needed to connect to itself. So what I was for my home desktop to have a different network IP address. my laptop has had a (192.168.1.3) which differed from the work machine.

    What I did to work around that it was:

    On my desktop, I opened the command prompt and run the ipconfig command and writes down the subnet mask and the default gateway of my wireless connection for use in later steps.

    I then roughly followed the steps of this (somewhat similar to Windows 7) site to modify the IPv4 settings to change from automatic to manual IP address assignment. Set it to manual and back (i.e. reset) has not worked for me and has given rise to the same network IP address. So, using the values of the ipconfig I ran earlier, I chose a random network IP (192.168.1.42) address, left the settings to manual assignment and find other info. For DNS servers, I use Google's Public DNS.

    The end result looks like the following and I am able to connect to my work from my home office machine.

    EDIT:

    After a little more work and looking around, I could cancel the settings above (thus leaving my office with the default settings) and solve the problem of logging in my router settings and my office assign an IP network (192.168.1.42) using its MAC address. As long as I don't have to RDP into a computer to work with the IP address assigned, it will work very well.

    I would mark this as the answer but do not see how.

  • Gallery of images or the Lightbox that works for DW CS6?

    Help! I need a gallery of images or the lightbox that works! I tried the Lightbox Gallery in Widgets and all this works for the most part, do not show the nav buttons and I put the files in each directory (path) as possible. Does anyone have a solution for this - I read the forums for hours about it. OR is there something that is easy and quick and works? And if all goes well free?

    Thank you very much!

    The first thing I noticed is that you're missing your departuretag

    After repairing this error, run your page through the validator here: http://validator.w3.org/ and clear to top all others. HTML errors are one of the biggest culprits in bad/bad display problems.

    In addition, please download the page to a location to test on your website so that we can see the code in action in a real browser, it's the only real way to tell you what goes wrong in about half of cases of something like what is happening. Once the problem has been resolved, you can delete the directory on your server.

  • Normal hours of work for an operation

    Hi, we are on 11.5.10.2 Oracle version and I need to locate the database where I can find hours of standard work for an operation. Any help would be appreciated!

    The standard working hours are in a table called bom_operation_resources.
    Try this
    Select the msi.segment1 point
    bos.operation_seq_num OP_SEQ_NUM
    bd.department_code
    br.resource_code
    bors.usage_rate_or_amount
    MSI mtl_system_items
    bom_operational_routings bor
    bom_operation_sequences bos
    bd bom_departments
    bom_operation_resources bors
    bom_resources br
    where msi.organization_id = & org_id
    and msi.segment1 = '& item'
    and msi.inventory_item_id = bor.assembly_item_id
    and msi.organization_id = bor.organization_id
    and bor.routing_sequence_id = bos.routing_sequence_id
    and bos.department_id = bd.department_id
    and bors.operation_sequence_id = bos.operation_sequence_id
    and bors.resource_id = br.resource_id
    order of msi.segment1, bos.operation_seq_num, bors.resource_seq_num

    Hope that answers your question
    Sandeep Gandhi
    Independent consultant
    513-325-9026.

Maybe you are looking for

  • inialization vi produces scalar and 1 d vector input

    I'm currently building a suppressor of adaptive noise (LMS type 11) as stated in a document of OR. I have a problem with the dot product vi. An input vector is an empty array, and of course the result is NaN. Its in a feedback loop, so I think that t

  • Strange behavior of GUI

    Hi all I'm a software developer in a neurosurgical research, and we are looking in a good software package to perform analyses on our biomedical data (16 channels of continuous data for 14 days at 200 Hz)... (btw: Labview is the way forward?) Therefo

  • Data in FPGA application channel switch

    Hi all I use cRIO 9074 and NI 9234 to collect data of vibration with FPGA mode. However, I found the data I collected were some strings under tension. For example, I have two NI9234 modules (8 channels). I found the first channel may have the value o

  • HP Envy 700-074 custom ' mode "Eve"

    Windows 8 HP Envy 700-074 with monitor from 2005. Keyboard and mouse wireless 2005 via USB HP printer (don't know the model right now, I'm at work) The screensaver is the folding at home screensaver. HP Envy bought in February 2014. The computer ente

  • latest version of the device driver for windows 7 64-bit USB mass storage

    My laptop Toshiba of Windows 7 Pro 64-bit a drivers of USB storage with a date of 2006. I get an error "unrecognized USB device" or something to that effect.MS has failed to update these drivers since 2006? Updates Windows suggests that the installed