For the tables below, I need to write a query that will generate the desired output. How can i solve this question using with recursive function.
Note: I solved with EXP(SUM(LOG(Value))) AS ValueMultiplication but i need to solve with recursive.
Logic :
30.0 x 3.0 x 0.5 -> 45
5.0 x 7.0 ->35
1.0 x 2.0 x 3.0 x 5.0 ->30
2.0 x 0.1 x 3.0 ->0.6
0.1 ->0.1
Table Values :
WITH
EXPERIMENT(ExperimentId,Code) AS(
SELECT
*
FROM(VALUES(1,'A10'),
(2,'A20'),
(3,'C40'),
(4,'B00'),
(5,'B99')
)EXPERIMENT (ExperimentId,Code)),
MEASUREMENT(ExperimentId,Value) AS
(
SELECT
*
FROM(VALUES(1,30.0),
(1,3.0),
(1,0.5),
(2,5.0),
(2,7.0),
(3,0.1),
(4,1.0),
(4,2.0),
(4,3.0),
(4,5.0),
(5,2.0),
(5,0.1),
(5,3.0)
)MEASUREMENT(ExperimentId,Value)),
