0
Good afternoon, I have the following problem:
I need to perform a function that calculates the average value of a product on a specific date.
SELECT VERIF_VL_CUSTO_MEDIO(PRODUCT.CD_PRODUTO, to_date('31/01/2021','dd/mm/yyyy') FROM PRODUCT;
However I need to execute this query, so I return the values to the last day of each month in the last 12 months.
I tried maybe to create a repeating structure, but I was unsuccessful.
I appreciate all your help
is compiled, used a material and a date in the filter, only q was 30 minutes running and I canceled the query. I was thinking of making a LOOP using the data field, but I don’t know how to do this on Oracle
– Ale Faria