473,383 Members | 1,918 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

calculate percentage of scheduled hours

45
Hi,

I have weekly wise scheduled hours of each employee and no of days scheduled for each employee,now i need to calculate no of employees scheduled less than 24 hours,no of emp's scheduled b/w 24 and 48 hrs and emp's scheduled more than 48 hrs in percentage for fisrt week,second week,3rd week and 4th week.
Like this
SCheduled Hrs 8/1/2010 8/8/2010 8/15/2010 8/22/2010

Less tha 24 hrs 5% 5% 5% 5%

b/w 24 and 48 hrs 4% 5% 5% 5%

>48 91% 90% 90% 90%
Aug 30 '10 #1
5 2387
MrMancunian
569 Expert 512MB
So what's your question?

Steven
Aug 31 '10 #2
NareshN
45
I just want to calculate weekly wise reports.

Reports should be for less than 24 hrs,betweeb 24 and 48 hrs and >48 hrs for all 4 weeks

I have reports like this in database for each employee

8.1.2010 8.8.2010 8.15.2010 8.22.2010
Emp1 24:00 24:00 24:00 22:00
Emp2 48:00 48:00 42:00 48:00
..
..
..
Empn
Aug 31 '10 #3
Frinavale
9,735 Expert Mod 8TB
Is the data stored in a database?
This is pretty easy to do with SQL Queries...

-Frinny
Aug 31 '10 #4
NareshN
45
Hi,

i have hours scheduled in a day and no of days scheduled in a week for each employee, based on this i will calculate hours scheduled for first week,2 week,3rd and 4th.

please send me query to get reports for hours scheduled less than 24,b/w 24 and 48 and >48 hrs for 1st week,2nd week,3rd week and 4th week
Aug 31 '10 #5
Frinavale
9,735 Expert Mod 8TB
NareshN,

The epxerts here on Bytes are not in the habit of doing your work for you. We are here to give you a hand with specific problems that you may be facing. It's unlikely that anyone is going to "give you queries" for your reports...especially if you haven't attempted to run the reports yourself yet.

Also, it is very hard to help you if you don't tell us how or where the data is stored.

Is it stored in a database?
If so, you can use SQL queries to return you the information.

But this isn't the only option...you could just use a SQL query to return you all of the data and then implement logic that does the calculations in your VB.NET or C# code. You could use LINQ to do this, or you could just use simple loops.

Please show us what you have attempted to solve the problem so far, and also provide us with more information about where/how the data is stored.



-Frinny
Aug 31 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Totto | last post by:
Hi, Is ther a simple way to calculate number of hours in a date range. (dtFrom as date , dtTo as date) Had a look at timespan, but can's see that it's possible to add dates. Tnx Totto
1
by: toluj | last post by:
Hi, pls could anyone help me with the script to calculate the percentage btwn two fields in a table.
3
by: tulikapuri | last post by:
Dear Friends, I am using the method to cal. percentage in report but no sucess it gives #Num! instead of a number. I am following the steps as given in help to calculate percentage value on a...
4
by: patsandy | last post by:
Hi, I am Patricia and I would like to get some assistance to write a Program in C. Your help would be greatly appreciated. The Program must calculate how long it takes to fly from one place...
7
by: ngweixiong | last post by:
Hi, I have a Ms Access query which i used to calculate how many times the leadtime is a) less than 7 days b) 7-14 days c) more than 14 days With the query results, i will like to convert...
3
by: smileyangeluv | last post by:
Hi, Would like to get percentage for generated column. Any idea on how to do that?? Following SQL statement SELECT s.Selection_Desc, count(u.user_id) from tbl_system_selection s, tbl_user...
9
by: brendanmcdonagh | last post by:
Hi, I am designing a project for my friend as I am just a week old baby to vb and want to implement what I've learnt so far. She wants to be able to put start time, end time and lunch for each...
4
ollyb303
by: ollyb303 | last post by:
Hello, Trying to help a friend/colleague out with a database and we've both drawn a blank. Not even sure if this is possible. The database has a table (Table1) with a several columns: ID,...
3
by: iceone | last post by:
Hi everybody, I am monitoring a call center and i need to calculate the working hours between the moment the call is answered and the moment the call is closed. i need to calculate the working...
3
by: John Torres | last post by:
how do you calculate total time hours? I have sub total hours for each day and I've been trying to total all the hours. I'm getting odd numbers. Thanks. John
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.