All pastes #911582 Raw Edit

Something

public text v1 · immutable
·published 2008-02-20 20:19 UTC
rendered paste body
create or replace function ZOEK_BEST_SCORENDE_PLOEG
return varchar2
is
v_naam ploeg.naam%type;
begin
select naam into v_naam from ploeg where stamnr in(select * from (select ploeg from doelpunt d,speler s where d.speler = s.bondnr group by s.ploeg order by count(*) desc) where rownum <= 1)
return(v_naam);
end ZOEK_BEST_SCORENDE_PLOEG;