miércoles, 20 de junio de 2012

Funcion De Control - Propiedad por Empleado - Rodrigo Rojas

create or replace FUNCTION CtaPropiedad (pNumEmpleado char)
return integer is
total integer :=0;
begin
select count (numPropiedad)into total
from  Propiedad
where numEmpleado = pNumEmpleado;
return total;
end CtaPropiedad;
select CtaPropiedad('SL21')from dual;

No hay comentarios:

Publicar un comentario