I would like to use a 'CASE WHEN THEN ElSE' in a IN statement. But it does not work like you se it below.
join notes n
on n.note_id=cp.note_id
and n.stamp_dat>=@date_from
and n.stdnote_code in(case when @country='NO'
then ('81','82','84','85','86','90','91')
else ('86','87') end)