I have user table which has username and ip-address.
Suppose I need all data whose IP address is between 5.101.108.0 and 5.101.108.255
How do I write query for it as IP is stored in varchar. Do I need to use regular expression for that as I will have to filter after 5.101.108. ?
Can you give a sample solution as I am not able to think how to filter. Thanks.