Dudes,
How can I make a GROUP BY function into an SQL instruction, to count how much machines by ip address range (until the 3rd range)?
Ex: (Existent registers for a field called ip_addr)
172.17.17.1
172.17.17.2
172.17.17.3
172.18.196.12
172.18.196.22
172.22.3.1
Range 172.17.17: 3 machines
Range 172.18.196: 2 machines
Range 172.22.3: 1 machine
How can I make a GROUP BY function into an SQL instruction, to count how much machines by ip address range (until the 3rd range)?
Ex: (Existent registers for a field called ip_addr)
172.17.17.1
172.17.17.2
172.17.17.3
172.18.196.12
172.18.196.22
172.22.3.1
Range 172.17.17: 3 machines
Range 172.18.196: 2 machines
Range 172.22.3: 1 machine
Comment