How can I know the orders of the last quarter given this question and this relational database
Would it be like this?
SELECT ID_PRODUCTO FROM PRODUCTOS
WHERE ID_PRODUCTO IN ( SELECT ID_PRODUCTO FROM PEDIDOS
WHERE FECHA>SYSDATE-90)
How can I find it without problems afterwards for months ending in 31?