Skip to content
Advertisement

Getting bounds in result with width_bucket

I’m trying to do a query using width_bucket and having a column in the results with the bounds of my buckets. Is there a simple way to do this?

My query:

Result:

What I’m trying to get:

Advertisement

Answer

As you have a fixed sets of buckets, another option is to join against a list of ranges:

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement