Login
Register
Calculate the total revenue generated by each customer in the last three months.
0
votes
Calculate the total revenue generated by each customer in the last three months.
oracle-query
asked
Jan 23, 2024
in
Oracle
by
Please
log in
or
register
to answer this question.
1
Answer
0
votes
SELECT customer_id, SUM(revenue) AS total_revenue
FROM sales
WHERE transaction_date >= TRUNC(SYSDATE) - INTERVAL '3' MONTH
GROUP BY customer_id;
answered
Jan 23, 2024
by
...