
Originally Posted by
weekend00
If you mean that you will provide specified week number to get the result, why not just put it in the result that you got:
for example, when you specify week no 41, you get 22222, Harris, then you just add 41.
Following query is just for reference:
select [input_week_no],table1.* from table1 left join table2 on table1.personal_NR=table1.personal_nr where table2.personal_nr is null where table2.week_no=[input_week_no]
when you run this query, it asks for input_week_n.