0

I have a table named ISO and a column bet that is a string type. They are all numbers btw, real ones.

how do I select all bets between number x and number y for example?

1
  • 2
    Why store numeric data in a string column? Alter column data type! Commented Oct 24, 2016 at 12:15

1 Answer 1

2

Storing a number as a string is a bad idea. But it is easy enough to convert the values:

select iso.*
from iso
where (iso.bet::int) between x and y;
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.