G
Guest
Hi, I have this union query and it' results are
IDInput IDOutput Date Label Inp.Quant. Out.Quant. Price /*
00 01.01.2005 99 100 0
8 /
01 02.01.2005 99 300 0
10 /
01 03.01.2005 99 0 250
0 /
02 04.01.2005 99 100 0
10 /
03 05.01.2005 99 300 0
11 /
02 06.01.2005 99 0 500
0 /
and that works ok, but i must calculate average price (not Avg(Price)) and
Output=[CalcPrice]*[OutQuant] like this, in query:
/* Calc.Price Input Output exp1 exp2([Inp.Q]-[Out.Q])
8 800 0 800 100
9.5 3000 0 3800 400
9.5 0 2375 1425 150
9.7 1000 0 2425 250
10.41 3300 0 5725 550
10.41 0 5205 520 50
Could anyone help me to find calc.Price.Thanks in advance.
IDInput IDOutput Date Label Inp.Quant. Out.Quant. Price /*
00 01.01.2005 99 100 0
8 /
01 02.01.2005 99 300 0
10 /
01 03.01.2005 99 0 250
0 /
02 04.01.2005 99 100 0
10 /
03 05.01.2005 99 300 0
11 /
02 06.01.2005 99 0 500
0 /
and that works ok, but i must calculate average price (not Avg(Price)) and
Output=[CalcPrice]*[OutQuant] like this, in query:
/* Calc.Price Input Output exp1 exp2([Inp.Q]-[Out.Q])
8 800 0 800 100
9.5 3000 0 3800 400
9.5 0 2375 1425 150
9.7 1000 0 2425 250
10.41 3300 0 5725 550
10.41 0 5205 520 50
Could anyone help me to find calc.Price.Thanks in advance.