473,398 Members | 2,368 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,398 software developers and data experts.

Need to calculate a number of values and display values to user

I'm working a project where I need to calculate the EVM for each project in the db. I need to query a table for the values I need and do some calculation with the values then display these values. I'm thinking I should be able to use a listbox for display if I could figure out how to gather all the data I need and calculate the values.

The challenging part is I have to perform 14 different calculations for each project. So my question is how do I do this when I have to perform a different query for each calculation?
Sep 27 '11 #1
7 1449
Rabbit
12,516 Expert Mod 8TB
It would help to know what the calculations are that you need to do.
Sep 27 '11 #2
I listed a few examples below:
  • sum all estimated cost for each tasks included in project
  • sum all the actual cost for each task included in project

Projects are in one table and Tasks in another.
Sep 27 '11 #3
Rabbit
12,516 Expert Mod 8TB
You can do multiple sums in one aggregate query.
Sep 27 '11 #4
Mihail
759 512MB
Are you SURE that you need DIFFERENT calculations ?

Maybe you can design some general formulas.
Say you have 3 properties (fields) for the general project (a, b and c) and 2 formulas like F(a,b,c) = a + b + c and G(a,b,c) = a*b

Now say that project 1 has all fields completed.
So you can compute F1(a,b,c) and G1(a,b,c) with (true) results.

If project 2 has only 2 properties (a and b) the property c exist but will be null. In this case you still can compute both formulas F2(a,b,c) and G2(a,b,c). For G you obtain a (true) result but for F you obtain NULL.

Hope you understand the idea and the top question of my post.

Good luck !
Sep 27 '11 #5
NeoPa
32,556 Expert Mod 16PB
If you haven't read any of the threads posted to explain how to ask questions that someone can answer then you should consider :
  1. Listing the tables involved in your data.
  2. Listing the fields in the tables involved in your data.
  3. Indicating what the calculations are you need performed.

Simply saying you have some calculations to perform on some data and asking for help is not going to make it easy for anyone to help you. Asking questions clearly isn't rocket science.
Sep 27 '11 #6
Created new topic for this question. with better explanation of what I need. ;-)

How to insert computed value in listbox on a per item basis
Oct 13 '11 #7
NeoPa
32,556 Expert Mod 16PB
We don't normally encourage reposting of questions, but in view of the effort you've put into that, and how you've taken what was said on board, I'll leave this thread here (locked - so no further conversation on the problem is kept away from the better explained question in the other thread), still available to view and link across from.
Oct 13 '11 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: SimonC | last post by:
Help needed for a Javascript beginner. As above in the subject... i need a javascript to run this, but not in the form of a web-page. I want to calculate it between 2 fields in a database that...
6
by: Herrcho | last post by:
in K&R Chapter 6.3 it mentions two methods to calculate NKEYS. and points out the first one which is to terminate the list of initializers with a null pointer, then loop along keytab until the...
1
by: Chris Hill via .NET 247 | last post by:
Hi I'm a jnr developer in need of desparate help. Can anyone point me in the right direction for this problem: I calculate the number of days between 2 user defined dates like this: Dim...
1
by: snipersix | last post by:
How do you display values in a textarea using javascript. ex. i have 2 radio buttons o Adult =$9.99 o Child =$6.99 i need it to be, so that if i select adult in the...
4
by: 848lu | last post by:
hi, im making a website which allows users to search with number and display it on another page with an option button... it is a online hotel booking system. so they search number of rooms they...
11
by: sqlservernewbie | last post by:
Hi Everyone, Here is a theoretical, and definition question for you. In databases, we have: Relation a table with columns and rows
4
chandru8
by: chandru8 | last post by:
hi to all if the current month is jan,i need to calculate the number of days of feb is it possible without assigning number of days manually to a variable
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.