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 -> Minus in View?

Minus in View?

From: <xiaoluma_at_gmail.com>
Date: 28 Sep 2005 14:32:13 -0700
Message-ID: <1127943133.340309.182260@o13g2000cwo.googlegroups.com>


Hey, there,
I was trying to create a view to get the new customer# fro year 2005 using the following code:
CREATE OR REPLACE VIEW NewCustomers
AS
SELECT Customer# FROM tblOrderFact
WHERE TransDate BETWEEN '20050101' AND '20051231' MINUS
SELECT Customer# FROM tblOrderFact
WHERE TransDate < '20050101'

The error message told me that MINUS was not allowed in updateble views. Can anyone give me suggestions?
Thanks.
Xiaolu Received on Wed Sep 28 2005 - 16:32:13 CDT

Original text of this message

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