You cannot directly write a select stmt in a stored proc. You will have to write a cursor for fetching the output of the select in some variables. For eg suppose the emp table has two smallint columns the syntax of the stored procedure can be
CREATE PROCEDURE test
(IN EMPLOYEE_NUMBER CHAR(10),
IN RATE DECIMAL(6,2))
LANGUAGE SQL
begin
Declare a smallint;
Declare b smallint;
declare c1 cursor for
SELECT * FROM EMP ;
fetch c1 into a,b;
end