R
rpboll
I am trying to develop a query for a poorly developed database as
follows:
ProjName Area1 Area2 Area3 ... Area14 Area1Pct Area2Pct Area3Pct ...
Area14Pct Cost
Unicorn T T
30 70 $876
Alpha T 100
$543
Zulu T T
40 60 $927
The "Ts" are True/False and if there more than one for a project the
Cost is shared via the Area Percentages. So Area 2 & 3 are involved
with project Unicorn and share 30% and 70% of the $876 cost
respectively.
The function return should display a result like included in the rows
above.
ProjName Areas Cost
Unicorn 2, 3 2($262.8), 3($613.2)
Alpha 1 1($543)
Zulu 2, 3 2($370.8), 3(556.2)
Thanks for any help with this one.
RBollinger
follows:
ProjName Area1 Area2 Area3 ... Area14 Area1Pct Area2Pct Area3Pct ...
Area14Pct Cost
Unicorn T T
30 70 $876
Alpha T 100
$543
Zulu T T
40 60 $927
The "Ts" are True/False and if there more than one for a project the
Cost is shared via the Area Percentages. So Area 2 & 3 are involved
with project Unicorn and share 30% and 70% of the $876 cost
respectively.
The function return should display a result like included in the rows
above.
ProjName Areas Cost
Unicorn 2, 3 2($262.8), 3($613.2)
Alpha 1 1($543)
Zulu 2, 3 2($370.8), 3(556.2)
Thanks for any help with this one.
RBollinger