MySQL Forums
Forum List  »  Newbie

Re: Find number between 1-10 in data
Posted by: Rick James
Date: June 03, 2014 10:46PM

Don't say "1-10" in a single column; have two columns. Then the WHERE clause can be something like this to see two ranges overlap:

WHERE a.start < b.end AND a.end > b.start

Options: ReplyQuote


Subject
Written By
Posted
Re: Find number between 1-10 in data
June 03, 2014 10:46PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.