ridhirao22
Programmer
I have a table with order_number, order_date, qty, amount.
I need to group amount data in 50’s ( like 50,100,150,200..6000) and count the orders and sum qty for each bucket. I came across the width_bucket function but I don’t understand how I tell the bucket width. Is there any easy way of do this?
Please advice.
TIA,
RR
I need to group amount data in 50’s ( like 50,100,150,200..6000) and count the orders and sum qty for each bucket. I came across the width_bucket function but I don’t understand how I tell the bucket width. Is there any easy way of do this?
Please advice.
TIA,
RR