This is possibly a half nasty way of doing it, I used it once, was rather effective.
Depending on your goals it might be of use.
- Create a temp tabletemp table with one column.
- INSERT each lookup
INSERTeach look-up value into that column. - Instead of using an IN
IN, you can then just use your standard JOINJOINrules. ( Flexibilty++Flexibility++ )
This has a bit of added flexibility in what you can do, but itsit's more suited for situations where you have a large table to query, with good indexing, and you want to use the parameterisedparametrized list more than once. SavesSaves having to execute it twice and have all the sanitation done manually.
I never got around to profiling exactly how fast it was, but in my situation it was needed.