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

Home -> Community -> Usenet -> c.d.o.misc -> Default where clause

Default where clause

From: Gorm Larsen <gorm_larsen_at_nospam.dk>
Date: Fri, 19 Mar 1999 17:43:07 +0100
Message-ID: <MPG.115c9d0b72ba66f49896fa@1RELAX.DK>


Is it possible to generate a standard where clause ?

If I have a table "Transact" with the fields Account, Date, Amount and Department, and the user makes a statement like:

select * from transact;

I would like to change it to:

select * from transact
where (department < 05 or department > 37);

without the user knowing anything about it.

Another user may get this:
select * from transact
where (department > 37 and account < "15000");

and so on.

--
Gorm Larsen Received on Fri Mar 19 1999 - 10:43:07 CST

Original text of this message

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