I have a column in my table with the following values:
'2.190.44.6'
'2.185.36.5'
'2.180.85.8'
'2.180.53.5'
'2.170.49.5'
'2.160.55.8'
'2.145.37.5'
I want to fetch only latest values and be generic to address values which will be added in future.
Currently the following would not work:
select device from table
where device NOT LIKE '2.1[0-7]%.[0-7]%'
Results should be only the following values:
'2.190.44.6'
'2.185.36.5'
'2.180.85.8'
'2.180.53.5'
Thanks for the help in advance!!