I think you want something (in SQL) like:
SQL has no concept of arrays and cannot synchronize between the values of your 'IN' clauses.SELECT name, last_name, reg_num, month, year FROM members WHERE (reg_num = '12345' AND month = '03') OR (reg_num = '98564' AND month = '01') OR (reg_num = '33234' AND month = '01') OR ... AND year='2009'
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
In reply to Re: Query using more than one array!
by CountZero
in thread Query using more than one array!
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |