I have a table, lets say table A, with data following same pattern:
- a.b.1.c
- a.b.2.c
- a.b.3.c
- a.b.3.d
How could I Select data when the number is greater than 1, for example?
Right know, I am using:
SELECT * FROM A WHERE col LIKE "%a.b.%"
And then, in java, I manage to get which ones are greater than a.b.1
Isn't possible to do this in a single query?
(I need to do it in MySql and SQLServer)