quote:
Originally posted by raceprouk
quote:
WHERE (blah >28 and blah < 46) or (blah is 82 or 82) or (blah > 677 and blah < 706)
will work.
well I know thats a valid query, that wasnt my question, and that was just an example list, much smaller than the real data. I asked how I could create that query programmatically.