Just wondering if anyone can help me out a bit with this stuff I'm doing at work?
Well if I have a list of numbers, something like:
quote:
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:
quote:
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