Hello i am trying to figure out how i can make a query to get the following information into a set from a table.
tbl_hosts
============
ip proto port
1.1.1.1 tcp 123
1.1.1.1 tcp 161
1.1.1.1 tcp 443
1.1.1.1 udp 161
1.1.1.1 udp 123
1.1.1.2 tcp 80
1.1.1.3 tcp 80
1.1.1.3 tcp 443
I am trying to figure out how i can get the following information in this format
1.1.1.1 - tcp - 123,161,443
1.1.1.2 - tcp - 80
1.1.1.3 - tcp - 80,443
Thank you very much for your response Gordon Linoff, just had one more question, would it be possible to also do something like this, in case there were more than one protocols with multiple ports for same ip's
1.1.1.1 - (tcp:123,161,443)(udp:161,123)
1.1.1.2 - tcp - 80
1.1.1.3 - tcp - 80,443