Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> simple PL/SQL problem

simple PL/SQL problem

From: Ronnie Braverman <Ronnie.Braverman_at_dsto.defence.gov.au>
Date: Thu, 23 Jul 1998 10:14:44 +1000
Message-ID: <35B68074.9D89FAAE@dsto.defence.gov.au>


Hi there.
I have a table defined as follows:
CREATE TABLE T
   (emp_name VARCHAR[4],
    emp_no NUMBER(5),
    hire DATE);
I need to write a function (ideally in embedded SQL, but PL will do) that will take a variable number of emp_names and variable number of emp_nos and return all rows in the table that have any of the emp_names or emp_nos. I am pretty good with simple SQL queries but am new to PL/SQL, and would most appreciate any help (the Oracle manuals seems to muddy the waters if anything).
Much appreciated,
Ronnie Received on Wed Jul 22 1998 - 19:14:44 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US