A view is simply an SQL statement.  In your case you want the user to be
able to specify a specific date.  The problem is quite specific:  Each
different date makes a new SQL statement.  But a view is based on a single
SQL statement, not multiple SQL statements.

It's like saying you want to sew a jacket, but you want to sew it in such a
way that people of different sizes will be able to change the size when they
put it on so it will fit them perfectly.  There is no way to sew a single
jacket that will do that.

Why not make a simple SQL*Plus script that uses ACCEPT to get a variable
from a user.  Then the SQL will be modified each time to include the date
the user specifies.

Apparently the reason for wanting to create a view is you want users to then
be able to select against it.  That can be accomplished by using ACCEPT to
get values from the users for those columns, too.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Greg Moore
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to