I do not know how to resolve these two queries:
The first query would be like this? there is no other way to put it that lasts 3 months exact, I say it by 30.31s
SELECT ID_PRODUCTO FROM PRODUCTOS
WHERE ID_PRODUCTO IN ( SELECT ID_PRODUCTO FROM PEDIDOS
WHERE FECHA>SYSDATE-90)