Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Thu, 15 Dec 1999 @ 22:51:27 GMT





     
  <Prev Next>   <<First <Prev Next> Last>>  




Subj:   Re: EXCEPT keyword
 
From:   Duncan Heard



Dean,

I have created views with the both the EXCEPT and MINUS statements (they are equivalent) with no problem. I think your problem must be something other than the except not being allowed in a 'create view'...

Example:

This query works fine:

     sel * from lookup_hour
       minus
     sel * from lookup_hour
     where TrxHour in (1, 2, 3)

This View works fine with Except:

     create view test_view as
     sel * from lookup_hour
       except
     sel * from lookup_hour
     where TrxHour in (1, 2, 3)

This view works fine with minus:

     create view test_view2 as
     sel * from lookup_hour
       minus
     sel * from lookup_hour
     where TrxHour in (1, 2, 3)

Regards,

Duncan Heard
Data Warehouse Consultant
Teradata Solutions Group
NCR Australia Pty. Ltd.





     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
 
  Top Home Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 30 Jun 2008