How to compute the total revenue per device on the last 7 days ( the sum of the orders amounts generated in the last 7 days for the device) [closed]

How to compute the total revenue per device on the last 7 days ( the sum of the orders amounts generated in the last 7 days for the device)


This is a companion discussion topic for the original entry at https://stackoverflow.com/questions/73868848/how-to-compute-the-total-revenue-per-device-on-the-last-7-days-the-sum-of-the