1 create table codeTable (locat INT, code TEXT, descript TEXT);
5 where locat not in (@lim1, @lim2)
10 (select code, descript // gets unique code-and-descript combos
12 where locat not in (@lim1, @lim2)
13 group by code, descript
16 having count(*) > @x // (error? should be "="?)