select
'Gefundene Artikel:',count(distinct pgf_artikel.artbez) as foundcount,
' <BR> Sie befinden sich auf Seite:' as seite,
numeric_part('00')/25+1 as thispage,
' von ' as von,
count(distinct pgf_artikel.artbez)/25+1 as pages
 from pgf_artikel,pgf_wg
  where pgf_wg.man='arsec' and active<>'0' and pgf_artikel.man='arsec'
  and position(','||pgf_wg.wg||',' in ','||artwg||',')>0
;
