I have a SQL table with a column that corresponds to a location and another that corresponds to a certain number , I also have an integer variable (let's call it n that corresponds to another number in my java code
I am using JDBC to query the server and what I need to do is the following:
Apply the query: SELECT NUMBER FROM MYTABLE
then for each number that the query outputs I want to check if n minus this number is <=3, my problem is that the select statement would generate multiple numbers, so how can I separate those? I am not sure if the solution would be Java related or MySQL related but any would work