Adam Dempsey Posted March 1, 2006 Posted March 1, 2006 Well if I have a list of numbers, something like: 29, 32, 33, 37, 45, 78, 82, 200, 678, 680, 683, 690, 705 I then want to perform an SQL query where a field is one of those numbers, but as the list could be a lot larger, I can't just list the numbers in the query as I'm guessing there would be a limit. So what would be the way to programatically create a 'smart query' so that its something like: WHERE (blah >28 and blah < 46) or (blah is 82 or 82) or (blah > 677 and blah < 706) If anyone has any ideas how'd I'd go about it or about the limits of SQL queries to an IBM machine then please reply : I'll be doing this in FileMaker scripting, but if really necessary I could add it to our existing VB app which is also part of the system. But any advice even how'd you would do it in other languages would be useful. Thanks for any replies }:(
Recommended Posts
This topic is 6844 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now