I'm not sure what info you wanted from EMPLOYEES... as a nexample, if you want it to return the number of employees for the specified country, try it as a function:
create or replace function COUN (
p_coun in varchar2)
return number as
--
v_result number;
begin
select count(*) into v_result
from employees
where country = p_coun;
return v_result;
end;
This will let you use it in a SELECT, such as:
select country, COUN(country) from employees;
To do the same as a procedure, try this:
create or replace function COUN (
p_coun in varchar2,
p_result out number) as
--
begin
select count(*) into p_result
from employees
where country = p_coun;
end;
Hope this helps,
Rich ____________________________
Rich Tefft
PL/SQL Programmer