Hi i'm trying to get a count of all the different lengths of products in my table.
I have two columns in the table Site & MaxLength. I want to somehow break up the lengths into increments such as 0-7.999 metres, 8-9.999 metres, 10-12.999metres, 13-14.999 etc then get a count for how many times a length appears for each site.
My Table
Site MaxLength
A 1
A 12
A 7.5
B 10
B 8
C 7
C 9.1
What i want my query to look like.
Site|0-7.999|8-9.999|10-12.999|13-14.999
A |2 |0 |1 |0
B |0 |1 |1 |0
C |1 |1 |0 |0
I'm not sure if i've been clear enough, let me know if you want more info.
Cheers
I have two columns in the table Site & MaxLength. I want to somehow break up the lengths into increments such as 0-7.999 metres, 8-9.999 metres, 10-12.999metres, 13-14.999 etc then get a count for how many times a length appears for each site.
My Table
Site MaxLength
A 1
A 12
A 7.5
B 10
B 8
C 7
C 9.1
What i want my query to look like.
Site|0-7.999|8-9.999|10-12.999|13-14.999
A |2 |0 |1 |0
B |0 |1 |1 |0
C |1 |1 |0 |0
I'm not sure if i've been clear enough, let me know if you want more info.
Cheers