#Parameter1:Startposition:Text:1
#Parameter2:Nummern (Komma-Getrennt):Text:1
-SQL-
select * into #tmp1 from privat where NRPRIVAT in (#Parameter2)
  declare @i int
  set @i=1
  while @i < #Parameter1 begin
     insert #tmp1 (nrprivat) values (@i*-1)
     set @i=@i+1
  end
  select *, anrede.anrede_d from #tmp1 left outer join anrede on #tmp1.nranrede = anrede.nranrede order by nrprivat;
  drop table #tmp1;
